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/c_kex.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/c_kex.cpp')
-rw-r--r-- | src/tls/c_kex.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tls/c_kex.cpp b/src/tls/c_kex.cpp index e0ebfb865..ed571852c 100644 --- a/src/tls/c_kex.cpp +++ b/src/tls/c_kex.cpp @@ -201,7 +201,7 @@ Client_Key_Exchange::Client_Key_Exchange(Record_Writer& writer, MemoryVector<byte> encrypted_key = encryptor.encrypt(pre_master, rng); - if(state->version == Protocol_Version::SSL_V3) + if(state->version() == Protocol_Version::SSL_V3) key_material = encrypted_key; // no length field else append_tls_length_value(key_material, encrypted_key, 2); @@ -245,7 +245,7 @@ Client_Key_Exchange::Client_Key_Exchange(const MemoryRegion<byte>& contents, try { - if(state->version == Protocol_Version::SSL_V3) + if(state->version() == Protocol_Version::SSL_V3) { pre_master = decryptor.decrypt(contents); } |