aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_channel.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-08-06 10:50:41 +0000
committerlloyd <[email protected]>2012-08-06 10:50:41 +0000
commit943ecbcce90b504f3ef9fe328136323b0d248c17 (patch)
tree0aa0c4611f7d0c75965af3abe2bc521c82f25ae0 /src/tls/tls_channel.cpp
parenta250506355588554dbd84181a94bb3a96234376e (diff)
Have all the TLS handshake messages stored in unique_ptrs with only
const access after setting them. Fix some const issues.
Diffstat (limited to 'src/tls/tls_channel.cpp')
-rw-r--r--src/tls/tls_channel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tls/tls_channel.cpp b/src/tls/tls_channel.cpp
index 2951bbeb0..253110c81 100644
--- a/src/tls/tls_channel.cpp
+++ b/src/tls/tls_channel.cpp
@@ -228,7 +228,7 @@ void Channel::send_alert(const Alert& alert)
}
}
-void Channel::Secure_Renegotiation_State::update(Client_Hello* client_hello)
+void Channel::Secure_Renegotiation_State::update(const Client_Hello* client_hello)
{
if(initial_handshake())
{
@@ -260,7 +260,7 @@ void Channel::Secure_Renegotiation_State::update(Client_Hello* client_hello)
}
}
-void Channel::Secure_Renegotiation_State::update(Server_Hello* server_hello)
+void Channel::Secure_Renegotiation_State::update(const Server_Hello* server_hello)
{
if(initial_handshake())
{
@@ -298,8 +298,8 @@ void Channel::Secure_Renegotiation_State::update(Server_Hello* server_hello)
m_initial_handshake = false;
}
-void Channel::Secure_Renegotiation_State::update(Finished* client_finished,
- Finished* server_finished)
+void Channel::Secure_Renegotiation_State::update(const Finished* client_finished,
+ const Finished* server_finished)
{
m_client_verify = client_finished->verify_data();
m_server_verify = server_finished->verify_data();