diff options
author | lloyd <[email protected]> | 2012-01-24 15:10:14 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-01-24 15:10:14 +0000 |
commit | 9e37cd76af978147cbb36faa09b9832b5f15f20a (patch) | |
tree | 5a198928294a9bde7b7cf5eb43aa5f89e885c25a /src/tls/tls_messages.h | |
parent | 92f6a575bca25d8985aa87304e28cd63867310e2 (diff) |
Send the supported elliptic curves extension. Instead of hardcoding
the values let policy specify them. Also choose an ECC curve for
server kex from the client hello. Choice is via policy, default
implementation is to choose the first curve the client supports out of
the server's preference list.
Diffstat (limited to 'src/tls/tls_messages.h')
-rw-r--r-- | src/tls/tls_messages.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tls/tls_messages.h b/src/tls/tls_messages.h index ec2229c21..33cd9e493 100644 --- a/src/tls/tls_messages.h +++ b/src/tls/tls_messages.h @@ -60,10 +60,11 @@ class Client_Hello : public Handshake_Message return v; } - std::vector<std::pair<std::string, std::string> > supported_algos() const + const std::vector<std::pair<std::string, std::string> >& supported_algos() const { return m_supported_algos; } - const std::vector<std::string> supported_ecc_curves() const { return m_supported_curves; } + const std::vector<std::string>& supported_ecc_curves() const + { return m_supported_curves; } std::vector<u16bit> ciphersuites() const { return m_suites; } std::vector<byte> compression_methods() const { return m_comp_methods; } |