diff options
Diffstat (limited to 'src/tls/msg_finished.cpp')
-rw-r--r-- | src/tls/msg_finished.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tls/msg_finished.cpp b/src/tls/msg_finished.cpp index 24b41c370..390f05300 100644 --- a/src/tls/msg_finished.cpp +++ b/src/tls/msg_finished.cpp @@ -26,7 +26,7 @@ std::vector<byte> finished_compute_verify(const Handshake_State* state, const byte SSL_CLIENT_LABEL[] = { 0x43, 0x4C, 0x4E, 0x54 }; const byte SSL_SERVER_LABEL[] = { 0x53, 0x52, 0x56, 0x52 }; - Handshake_Hash hash = state->hash; // don't modify state + Handshake_Hash hash = state->hash(); // don't modify state std::vector<byte> ssl3_finished; @@ -55,7 +55,7 @@ std::vector<byte> finished_compute_verify(const Handshake_State* state, else input += std::make_pair(TLS_SERVER_LABEL, sizeof(TLS_SERVER_LABEL)); - input += state->hash.final(state->version(), state->ciphersuite().mac_algo()); + input += state->hash().final(state->version(), state->ciphersuite().mac_algo()); return unlock(prf->derive_key(12, state->session_keys().master_secret(), input)); } @@ -71,7 +71,7 @@ Finished::Finished(Handshake_IO& io, Connection_Side side) { m_verification_data = finished_compute_verify(state, side); - state->hash.update(io.send(*this)); + state->hash().update(io.send(*this)); } /* |