From 92f6a575bca25d8985aa87304e28cd63867310e2 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 24 Jan 2012 14:54:40 +0000 Subject: Get the list of supported ECC curves out of the client hello, and avoid negotiating an ECDH key exchange if the client didn't send any curves that we know about. --- src/tls/tls_messages.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/tls/tls_messages.h') diff --git a/src/tls/tls_messages.h b/src/tls/tls_messages.h index c3dbaaf42..ec2229c21 100644 --- a/src/tls/tls_messages.h +++ b/src/tls/tls_messages.h @@ -63,6 +63,8 @@ class Client_Hello : public Handshake_Message std::vector > supported_algos() const { return m_supported_algos; } + const std::vector supported_ecc_curves() const { return m_supported_curves; } + std::vector ciphersuites() const { return m_suites; } std::vector compression_methods() const { return m_comp_methods; } @@ -119,6 +121,7 @@ class Client_Hello : public Handshake_Message MemoryVector m_renegotiation_info; std::vector > m_supported_algos; + std::vector m_supported_curves; }; /** -- cgit v1.2.3