diff options
author | lloyd <[email protected]> | 2012-01-04 17:59:31 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-01-04 17:59:31 +0000 |
commit | 01f21a93c66965876097ee1c989cf7b4ce1f9a2a (patch) | |
tree | 29d762afed2af35d3c94fa02b4e24fbb6c865724 /src/tls/s_hello.cpp | |
parent | 268b336843cf71f8fcb8c68ed67a622c71e3232a (diff) |
The first 4 bytes of the client and server randoms are supposed to be
a timestamp. Instead we used random values for all, but hypothetically
it would be useful for the timestamp to be correct in case someone
decides to interpret that field. Which they hopefully won't.
Diffstat (limited to 'src/tls/s_hello.cpp')
-rw-r--r-- | src/tls/s_hello.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tls/s_hello.cpp b/src/tls/s_hello.cpp index 5ffb1e7d4..4fa67ca53 100644 --- a/src/tls/s_hello.cpp +++ b/src/tls/s_hello.cpp @@ -30,7 +30,7 @@ Server_Hello::Server_Hello(Record_Writer& writer, RandomNumberGenerator& rng) : s_version(version), m_session_id(rng.random_vec(32)), - s_random(rng.random_vec(32)), + s_random(make_hello_random(rng)), m_fragment_size(c_hello.fragment_size()), m_secure_renegotiation(client_has_secure_renegotiation), m_renegotiation_info(reneg_info), @@ -77,7 +77,7 @@ Server_Hello::Server_Hello(Record_Writer& writer, RandomNumberGenerator& rng) : s_version(ver), m_session_id(session_id), - s_random(rng.random_vec(32)), + s_random(make_hello_random(rng)), suite(ciphersuite), comp_method(compression), m_fragment_size(max_fragment_size), |