diff options
author | lloyd <[email protected]> | 2012-01-25 13:21:01 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-01-25 13:21:01 +0000 |
commit | 10971c4c82970e5fc702b985eef1bf2448f34a58 (patch) | |
tree | ee1dd38146b036575e5c5e8c436541a6bca18afc /src/tls/tls_client.cpp | |
parent | d9f9ef98ec1f554c7d9729f5d97cb4578b84691b (diff) |
Move around the order of arguments to activate() and add the
compression method (currently we just ensure that no compression was
negotiated)
Diffstat (limited to 'src/tls/tls_client.cpp')
-rw-r--r-- | src/tls/tls_client.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/tls/tls_client.cpp b/src/tls/tls_client.cpp index e0fde4573..d733733be 100644 --- a/src/tls/tls_client.cpp +++ b/src/tls/tls_client.cpp @@ -338,7 +338,8 @@ void Client::process_handshake_msg(Handshake_Type type, writer.send(CHANGE_CIPHER_SPEC, 1); - writer.activate(state->suite, state->keys, CLIENT); + writer.activate(CLIENT, state->suite, state->keys, + state->server_hello->compression_method()); if(state->server_hello->next_protocol_notification()) { @@ -354,7 +355,8 @@ void Client::process_handshake_msg(Handshake_Type type, { state->set_expected_next(FINISHED); - reader.activate(state->suite, state->keys, CLIENT); + reader.activate(CLIENT, state->suite, state->keys, + state->server_hello->compression_method()); } else if(type == FINISHED) { @@ -372,7 +374,8 @@ void Client::process_handshake_msg(Handshake_Type type, { writer.send(CHANGE_CIPHER_SPEC, 1); - writer.activate(state->suite, state->keys, CLIENT); + writer.activate(CLIENT, state->suite, state->keys, + state->server_hello->compression_method()); state->client_finished = new Finished(writer, state, CLIENT); } |