diff options
author | Jack Lloyd <[email protected]> | 2018-01-04 08:48:00 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-01-21 12:56:05 -0500 |
commit | 08b7ca1d35c0e4d06695e8744708ae6cf3f5af7a (patch) | |
tree | ed1b527302608854d98a689a21d7250cb8b043ae /src/lib/tls/tls_session.h | |
parent | 65f375348c0773af6e9bbe3a005aef177dfd4ac3 (diff) |
Remove vestigial support for TLS compression
It was never supported and never will be. Removing negotiation entirely
simplifies the code a bit.
Diffstat (limited to 'src/lib/tls/tls_session.h')
-rw-r--r-- | src/lib/tls/tls_session.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/lib/tls/tls_session.h b/src/lib/tls/tls_session.h index 62e2b2df9..5a75e6a32 100644 --- a/src/lib/tls/tls_session.h +++ b/src/lib/tls/tls_session.h @@ -35,7 +35,6 @@ class BOTAN_PUBLIC_API(2,0) Session final m_start_time(std::chrono::system_clock::time_point::min()), m_version(), m_ciphersuite(0), - m_compression_method(0), m_connection_side(static_cast<Connection_Side>(0)), m_srtp_profile(0), m_extended_master_secret(false), @@ -49,7 +48,6 @@ class BOTAN_PUBLIC_API(2,0) Session final const secure_vector<uint8_t>& master_secret, Protocol_Version version, uint16_t ciphersuite, - uint8_t compression_method, Connection_Side side, bool supports_extended_master_secret, bool supports_encrypt_then_mac, @@ -130,11 +128,6 @@ class BOTAN_PUBLIC_API(2,0) Session final Ciphersuite ciphersuite() const { return Ciphersuite::by_id(m_ciphersuite); } /** - * Get the compression method used in the saved session - */ - uint8_t compression_method() const { return m_compression_method; } - - /** * Get which side of the connection the resumed session we are/were * acting as. */ @@ -190,7 +183,7 @@ class BOTAN_PUBLIC_API(2,0) Session final const Server_Information& server_info() const { return m_server_info; } private: - enum { TLS_SESSION_PARAM_STRUCT_VERSION = 20160812}; + enum { TLS_SESSION_PARAM_STRUCT_VERSION = 20160812 }; std::chrono::system_clock::time_point m_start_time; @@ -200,7 +193,6 @@ class BOTAN_PUBLIC_API(2,0) Session final Protocol_Version m_version; uint16_t m_ciphersuite; - uint8_t m_compression_method; Connection_Side m_connection_side; uint16_t m_srtp_profile; bool m_extended_master_secret; |