aboutsummaryrefslogtreecommitdiffstats
path: root/src/ssl/tls_server.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-04-23 21:22:24 +0000
committerlloyd <[email protected]>2010-04-23 21:22:24 +0000
commit6c7b8d1d86e669067720c5290d5e4dfe5d904012 (patch)
treede086a4eba492d9e021d8442038b983dc35cee54 /src/ssl/tls_server.cpp
parent76ee8b28fca005a35067cc1dbd82290ca9324552 (diff)
Add the other parties Random value to the local PRNG state
Diffstat (limited to 'src/ssl/tls_server.cpp')
-rw-r--r--src/ssl/tls_server.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ssl/tls_server.cpp b/src/ssl/tls_server.cpp
index 1c8d28c95..a6e1a8758 100644
--- a/src/ssl/tls_server.cpp
+++ b/src/ssl/tls_server.cpp
@@ -348,6 +348,8 @@ void TLS_Server::process_handshake_msg(Handshake_Type type,
state->client_hello = new Client_Hello(contents, type);
+ rng.add_entropy_vec(state->client_hello->random());
+
client_requested_hostname = state->client_hello->hostname();
state->version = choose_version(state->client_hello->version(),