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_extensions.cpp | |
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_extensions.cpp')
-rw-r--r-- | src/tls/tls_extensions.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/tls/tls_extensions.cpp b/src/tls/tls_extensions.cpp index 8754405b0..20f687514 100644 --- a/src/tls/tls_extensions.cpp +++ b/src/tls/tls_extensions.cpp @@ -366,21 +366,6 @@ MemoryVector<byte> Supported_Elliptic_Curves::serialize() const return buf; } -Supported_Elliptic_Curves::Supported_Elliptic_Curves() - { - m_curves.push_back("secp521r1"); - m_curves.push_back("secp384r1"); - m_curves.push_back("secp256r1"); - m_curves.push_back("secp256k1"); - m_curves.push_back("secp224r1"); - m_curves.push_back("secp224k1"); - m_curves.push_back("secp192r1"); - m_curves.push_back("secp192k1"); - m_curves.push_back("secp160r2"); - m_curves.push_back("secp160r1"); - m_curves.push_back("secp160k1"); - } - Supported_Elliptic_Curves::Supported_Elliptic_Curves(TLS_Data_Reader& reader, u16bit extension_size) { |