aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_handshake_state.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-08-06 12:22:59 +0000
committerlloyd <[email protected]>2012-08-06 12:22:59 +0000
commitadde1ee09300a4dd7a42a6f8e819b8f92ca4a2bd (patch)
tree28325f295b58a621349ec2ae797c87beec2e6887 /src/tls/tls_handshake_state.h
parent8120cce3f345a212c1f81226441d71cd75aa3cbc (diff)
Make the handshake hash private
Diffstat (limited to 'src/tls/tls_handshake_state.h')
-rw-r--r--src/tls/tls_handshake_state.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tls/tls_handshake_state.h b/src/tls/tls_handshake_state.h
index 8fc9cc89e..66c1ac113 100644
--- a/src/tls/tls_handshake_state.h
+++ b/src/tls/tls_handshake_state.h
@@ -143,11 +143,13 @@ class Handshake_State
void compute_session_keys(const secure_vector<byte>& resume_master_secret);
+ Handshake_Hash& hash() { return m_handshake_hash; }
+
+ const Handshake_Hash& hash() const { return m_handshake_hash; }
+
// Used by the server only, in case of RSA key exchange
Private_Key* server_rsa_kex_key = nullptr; // FIXME make private
- Handshake_Hash hash; // FIXME make private
-
/*
* Only used by clients for session resumption
*/
@@ -172,6 +174,7 @@ class Handshake_State
Protocol_Version m_version;
Ciphersuite m_ciphersuite;
Session_Keys m_session_keys;
+ Handshake_Hash m_handshake_hash;
std::unique_ptr<Client_Hello> m_client_hello;
std::unique_ptr<Server_Hello> m_server_hello;