diff options
author | Jack Lloyd <[email protected]> | 2016-01-03 18:27:44 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-01-03 18:27:44 -0500 |
commit | 2713825275950737441a063b8ea8df25981d53b1 (patch) | |
tree | 652ce64b676ab10f1a3161d92e9d398a2abf8298 /src/lib/tls/tls_session.h | |
parent | 4658f3094d652a012c29837910aef89788654b55 (diff) |
Add extended master secret extension (RFC 7627) to TLS
Interop tested with mbed TLS
Diffstat (limited to 'src/lib/tls/tls_session.h')
-rw-r--r-- | src/lib/tls/tls_session.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/tls/tls_session.h b/src/lib/tls/tls_session.h index 81c662507..f38ca8e27 100644 --- a/src/lib/tls/tls_session.h +++ b/src/lib/tls/tls_session.h @@ -38,6 +38,7 @@ class BOTAN_DLL Session m_compression_method(0), m_connection_side(static_cast<Connection_Side>(0)), m_srtp_profile(0), + m_extended_master_secret(false), m_fragment_size(0) {} @@ -51,6 +52,7 @@ class BOTAN_DLL Session byte compression_method, Connection_Side side, size_t fragment_size, + bool supports_extended_master_secret, const std::vector<X509_Certificate>& peer_certs, const std::vector<byte>& session_ticket, const Server_Information& server_info, @@ -160,6 +162,8 @@ class BOTAN_DLL Session */ u16bit dtls_srtp_profile() const { return m_srtp_profile; } + bool supports_extended_master_secret() const { return m_extended_master_secret; } + /** * Return the certificate chain of the peer (possibly empty) */ @@ -183,7 +187,7 @@ class BOTAN_DLL Session const Server_Information& server_info() const { return m_server_info; } private: - enum { TLS_SESSION_PARAM_STRUCT_VERSION = 20150104 }; + enum { TLS_SESSION_PARAM_STRUCT_VERSION = 20160103 }; std::chrono::system_clock::time_point m_start_time; @@ -196,6 +200,7 @@ class BOTAN_DLL Session byte m_compression_method; Connection_Side m_connection_side; u16bit m_srtp_profile; + bool m_extended_master_secret; size_t m_fragment_size; |