diff options
Diffstat (limited to 'src/tls/tls_server.cpp')
-rw-r--r-- | src/tls/tls_server.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/tls/tls_server.cpp b/src/tls/tls_server.cpp index 386e5fcf6..0f1b24045 100644 --- a/src/tls/tls_server.cpp +++ b/src/tls/tls_server.cpp @@ -439,8 +439,10 @@ void Server::process_handshake_msg(Handshake_Type type, m_writer.send(CHANGE_CIPHER_SPEC, 1); - m_writer.activate(SERVER, m_state->suite, m_state->keys, - m_state->server_hello->compression_method()); + m_writer.change_cipher_spec(SERVER, + m_state->suite, + m_state->keys, + m_state->server_hello->compression_method()); m_state->server_finished = new Finished(m_state->handshake_writer(), m_state.get(), SERVER); @@ -625,8 +627,10 @@ void Server::process_handshake_msg(Handshake_Type type, else m_state->set_expected_next(FINISHED); - m_reader.activate(SERVER, m_state->suite, m_state->keys, - m_state->server_hello->compression_method()); + m_reader.change_cipher_spec(SERVER, + m_state->suite, + m_state->keys, + m_state->server_hello->compression_method()); } else if(type == NEXT_PROTOCOL) { @@ -696,8 +700,10 @@ void Server::process_handshake_msg(Handshake_Type type, m_writer.send(CHANGE_CIPHER_SPEC, 1); - m_writer.activate(SERVER, m_state->suite, m_state->keys, - m_state->server_hello->compression_method()); + m_writer.change_cipher_spec(SERVER, + m_state->suite, + m_state->keys, + m_state->server_hello->compression_method()); m_state->server_finished = new Finished(m_state->handshake_writer(), m_state.get(), SERVER); |