aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_client.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-12-28 22:39:18 +0000
committerlloyd <[email protected]>2011-12-28 22:39:18 +0000
commiteb6b59f2aef6a4999be244c7d90ace3f6bbcac5d (patch)
tree7b15e8034769e1a9d57335e1fb0259167299fcc6 /src/tls/tls_client.cpp
parentb48a5b800a00e955cada6c418848c3bc460e44e7 (diff)
Don't buffer in the record writer at all - we immediately process and
send out inputs as they are available. Thus, flushing is never required, and we avoid some unnecessary copying. If we are using a CBC mode cipher in SSLv3/TLSv1.0, send a 1-byte fragment to start to prevent the adaptive plaintext attack.
Diffstat (limited to 'src/tls/tls_client.cpp')
-rw-r--r--src/tls/tls_client.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/tls/tls_client.cpp b/src/tls/tls_client.cpp
index 5dbcadaea..b58a6766f 100644
--- a/src/tls/tls_client.cpp
+++ b/src/tls/tls_client.cpp
@@ -236,7 +236,6 @@ void TLS_Client::process_handshake_msg(Handshake_Type type,
state->server_hello->random());
writer.send(CHANGE_CIPHER_SPEC, 1);
- writer.flush();
writer.set_keys(state->suite, state->keys, CLIENT);