aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_client.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-01-25 13:21:01 +0000
committerlloyd <[email protected]>2012-01-25 13:21:01 +0000
commit10971c4c82970e5fc702b985eef1bf2448f34a58 (patch)
treeee1dd38146b036575e5c5e8c436541a6bca18afc /src/tls/tls_client.cpp
parentd9f9ef98ec1f554c7d9729f5d97cb4578b84691b (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.cpp9
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);
}