summaryrefslogtreecommitdiff
path: root/lib/gnutls_handshake.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-11-15 09:54:52 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-11-15 09:55:51 +0100
commit0c65b32ed9a5dfdd6d3b32cd5c8e0d6861637cf1 (patch)
tree01f407f3cfdbbb2df61dad19e94366fea30bea48 /lib/gnutls_handshake.c
parent33cda206abc5f77d7797902fcea9297e47db4c8d (diff)
downloadgnutls-0c65b32ed9a5dfdd6d3b32cd5c8e0d6861637cf1.tar.gz
correctly set the ciphersuite when the set_premaster interface is used.
Diffstat (limited to 'lib/gnutls_handshake.c')
-rw-r--r--lib/gnutls_handshake.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gnutls_handshake.c b/lib/gnutls_handshake.c
index 9b924c9b1c..1f64865876 100644
--- a/lib/gnutls_handshake.c
+++ b/lib/gnutls_handshake.c
@@ -1668,6 +1668,11 @@ _gnutls_client_check_if_resuming(gnutls_session_t session,
session->security_parameters.client_random,
GNUTLS_RANDOM_SIZE);
+ memcpy(session->security_parameters.cipher_suite,
+ session->internals.resumed_security_parameters.cipher_suite, 2);
+ session->security_parameters.compression_method =
+ session->internals.resumed_security_parameters.compression_method;
+
_gnutls_epoch_set_cipher_suite
(session, EPOCH_NEXT,
session->internals.resumed_security_parameters.