diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-06-05 15:36:18 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-06-22 12:54:18 +0200 |
commit | 1b3ece44acaa25c149659a6878d2be807a282f02 (patch) | |
tree | 1e37ffe93e058d49634c9e62cde98be65d015150 /lib/session_pack.c | |
parent | 60c32a7527ddf5e9889a2e6d25f530f0e25212f3 (diff) | |
download | gnutls-1b3ece44acaa25c149659a6878d2be807a282f02.tar.gz |
Removed support for compression mechanisms
They are not required for TLS 1.3, and are deprecated for TLS 1.2.
We eliminate them in order to reduce the complexity in the record
packet handling.
Resolves #212
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/session_pack.c')
-rw-r--r-- | lib/session_pack.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/session_pack.c b/lib/session_pack.c index 39f0737042..b8612c5a6b 100644 --- a/lib/session_pack.c +++ b/lib/session_pack.c @@ -691,11 +691,9 @@ unpack_psk_auth_info(gnutls_session_t session, gnutls_buffer_st * ps) * 1 byte the key exchange algorithm used * 1 byte the read cipher algorithm * 1 byte the read mac algorithm - * 1 byte the read compression algorithm * * 1 byte the write cipher algorithm * 1 byte the write mac algorithm - * 1 byte the write compression algorithm * * 1 byte the certificate type * 1 byte the protocol version @@ -747,8 +745,6 @@ pack_security_parameters(gnutls_session_t session, gnutls_buffer_st * ps) BUFFER_APPEND_NUM(ps, session->security_parameters.entity); BUFFER_APPEND_NUM(ps, session->security_parameters.kx_algorithm); BUFFER_APPEND(ps, session->security_parameters.cipher_suite, 2); - BUFFER_APPEND_NUM(ps, - session->security_parameters.compression_method); BUFFER_APPEND_NUM(ps, session->security_parameters.cert_type); BUFFER_APPEND_NUM(ps, session->security_parameters.pversion->id); @@ -820,9 +816,6 @@ unpack_security_parameters(gnutls_session_t session, gnutls_buffer_st * ps) cipher_suite, 2); BUFFER_POP_NUM(ps, session->internals.resumed_security_parameters. - compression_method); - BUFFER_POP_NUM(ps, - session->internals.resumed_security_parameters. cert_type); BUFFER_POP_NUM(ps, version); session->internals.resumed_security_parameters.pversion = @@ -904,7 +897,7 @@ unpack_security_parameters(gnutls_session_t session, gnutls_buffer_st * ps) * @kx: the key exchange method * @cipher: the cipher * @mac: the MAC algorithm - * @comp: the compression method + * @comp: the compression method (ignored) * @master: the master key to use * @session_id: the session identifier * @@ -942,8 +935,6 @@ gnutls_session_set_premaster(gnutls_session_t session, unsigned int entity, if (ret < 0) return gnutls_assert_val(ret); - session->internals.resumed_security_parameters.compression_method = - comp; session->internals.resumed_security_parameters.cert_type = DEFAULT_CERT_TYPE; session->internals.resumed_security_parameters.pversion = |