diff options
author | lloyd <[email protected]> | 2012-03-05 15:23:58 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-03-05 15:23:58 +0000 |
commit | 4e427ceb1518e3a0fb978717a4ec0c7d174b68d5 (patch) | |
tree | 83dc49687f84108fd6576601afc9702672f62107 /src/tls/tls_session_key.cpp | |
parent | 0cb5c24b007ba8cea9eb05f31548b078e2b1dea3 (diff) |
Add an abstraction for reading handshake messages (as DTLS handles it
quite differently).
Avoid using a queue for reading certificates.
Hide the version code in the handshake state with a getter and setter.
Diffstat (limited to 'src/tls/tls_session_key.cpp')
-rw-r--r-- | src/tls/tls_session_key.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tls/tls_session_key.cpp b/src/tls/tls_session_key.cpp index 83ac7540b..edd0617bc 100644 --- a/src/tls/tls_session_key.cpp +++ b/src/tls/tls_session_key.cpp @@ -47,7 +47,7 @@ Session_Keys::Session_Keys(Handshake_State* state, { SecureVector<byte> salt; - if(state->version != Protocol_Version::SSL_V3) + if(state->version() != Protocol_Version::SSL_V3) salt += std::make_pair(MASTER_SECRET_MAGIC, sizeof(MASTER_SECRET_MAGIC)); salt += state->client_hello->random(); @@ -57,7 +57,7 @@ Session_Keys::Session_Keys(Handshake_State* state, } SecureVector<byte> salt; - if(state->version != Protocol_Version::SSL_V3) + if(state->version() != Protocol_Version::SSL_V3) salt += std::make_pair(KEY_GEN_MAGIC, sizeof(KEY_GEN_MAGIC)); salt += state->server_hello->random(); salt += state->client_hello->random(); |