diff options
author | lloyd <[email protected]> | 2012-08-06 12:22:59 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-08-06 12:22:59 +0000 |
commit | adde1ee09300a4dd7a42a6f8e819b8f92ca4a2bd (patch) | |
tree | 28325f295b58a621349ec2ae797c87beec2e6887 /src/tls/tls_client.cpp | |
parent | 8120cce3f345a212c1f81226441d71cd75aa3cbc (diff) |
Make the handshake hash private
Diffstat (limited to 'src/tls/tls_client.cpp')
-rw-r--r-- | src/tls/tls_client.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tls/tls_client.cpp b/src/tls/tls_client.cpp index d1b076498..57195e1f9 100644 --- a/src/tls/tls_client.cpp +++ b/src/tls/tls_client.cpp @@ -88,7 +88,7 @@ void Client::initiate_handshake(bool force_full_renegotiation, { m_state->client_hello(new Client_Hello( m_state->handshake_io(), - m_state->hash, + m_state->hash(), m_policy, m_rng, m_secure_renegotiation.for_client_hello(), @@ -104,7 +104,7 @@ void Client::initiate_handshake(bool force_full_renegotiation, { m_state->client_hello(new Client_Hello( m_state->handshake_io(), - m_state->hash, + m_state->hash(), version, m_policy, m_rng, @@ -160,7 +160,7 @@ void Client::process_handshake_msg(Handshake_Type type, m_state->confirm_transition_to(type); if(type != HANDSHAKE_CCS && type != FINISHED && type != HELLO_VERIFY_REQUEST) - m_state->hash.update(m_state->handshake_io().format(contents, type)); + m_state->hash().update(m_state->handshake_io().format(contents, type)); if(type == HELLO_VERIFY_REQUEST) { @@ -171,7 +171,7 @@ void Client::process_handshake_msg(Handshake_Type type, std::unique_ptr<Client_Hello> client_hello_w_cookie( new Client_Hello(m_state->handshake_io(), - m_state->hash, + m_state->hash(), *m_state->client_hello(), hello_verify_request)); @@ -366,7 +366,7 @@ void Client::process_handshake_msg(Handshake_Type type, m_state->client_certs( new Certificate(m_state->handshake_io(), - m_state->hash, + m_state->hash(), client_certs) ); } @@ -413,7 +413,7 @@ void Client::process_handshake_msg(Handshake_Type type, m_state->client_npn_cb(m_state->server_hello()->next_protocols()); m_state->next_protocol( - new Next_Protocol(m_state->handshake_io(), m_state->hash, protocol) + new Next_Protocol(m_state->handshake_io(), m_state->hash(), protocol) ); } @@ -451,7 +451,7 @@ void Client::process_handshake_msg(Handshake_Type type, throw TLS_Exception(Alert::DECRYPT_ERROR, "Finished message didn't verify"); - m_state->hash.update(m_state->handshake_io().format(contents, type)); + m_state->hash().update(m_state->handshake_io().format(contents, type)); if(!m_state->client_finished()) // session resume case { |