From 943ecbcce90b504f3ef9fe328136323b0d248c17 Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 6 Aug 2012 10:50:41 +0000 Subject: Have all the TLS handshake messages stored in unique_ptrs with only const access after setting them. Fix some const issues. --- src/tls/tls_channel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/tls/tls_channel.cpp') 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(); -- cgit v1.2.3