From 1bfd053969280ee6228f5579b2e2f1ff3cbcf0a5 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 27 Dec 2011 20:27:23 +0000 Subject: Actually send the right info in a resumed session server hello --- src/tls/tls_server.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/tls/tls_server.cpp b/src/tls/tls_server.cpp index ac16aa42e..59e7286ac 100644 --- a/src/tls/tls_server.cpp +++ b/src/tls/tls_server.cpp @@ -149,16 +149,13 @@ void TLS_Server::process_handshake_msg(Handshake_Type type, { // resume session - // FIXME: should only send the resumed ciphersuite - // (eg even if policy object changed) state->server_hello = new Server_Hello( rng, writer, - policy, - cert_chain, - *(state->client_hello), - state->client_hello->session_id(), - state->version, + session_info.session_id, + session_info.ciphersuite, + session_info.compression_method, + Version_Code(session_info.version), state->hash); state->suite = CipherSuite(state->server_hello->ciphersuite()); -- cgit v1.2.3