aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_server.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-06-10 12:42:09 +0000
committerlloyd <[email protected]>2012-06-10 12:42:09 +0000
commit8d30d35141f43c784bbce356974fd3c6c70031f0 (patch)
tree328bc11063ceedc894191b0cebf140c5d777725c /src/tls/tls_server.cpp
parent657ffc49505fa1b5ec675f2be22e8a8a15fd8918 (diff)
Generate new session IDs in the same format as hello randoms, with the
first 4 bytes a timestamp. Conveniently this means removing the lexicographically first session id from a cache is removing the oldest session.
Diffstat (limited to 'src/tls/tls_server.cpp')
-rw-r--r--src/tls/tls_server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tls/tls_server.cpp b/src/tls/tls_server.cpp
index d1d9463e2..9027fbd2f 100644
--- a/src/tls/tls_server.cpp
+++ b/src/tls/tls_server.cpp
@@ -445,7 +445,7 @@ void Server::process_handshake_msg(Handshake_Type type,
m_state->server_hello = new Server_Hello(
m_writer,
m_state->hash,
- unlock(m_rng.random_vec(32)), // new session ID
+ make_hello_random(m_rng), // new session ID
m_state->version(),
choose_ciphersuite(m_policy, m_creds, cert_chains, m_state->client_hello),
choose_compression(m_policy, m_state->client_hello->compression_methods()),