aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/tls_server.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-10-06 01:23:38 +0000
committerlloyd <[email protected]>2014-10-06 01:23:38 +0000
commit97010abaf527fdbe6e308cb3570f9167c1dc9ec1 (patch)
tree3ee88257f0489973028af97d8ac4e0693f409969 /src/lib/tls/tls_server.cpp
parentdfc95bc5a95a1af1f4fe7f28168ac27a6e1b841b (diff)
Specify version number in message when we reject due to policy
Diffstat (limited to 'src/lib/tls/tls_server.cpp')
-rw-r--r--src/lib/tls/tls_server.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/tls/tls_server.cpp b/src/lib/tls/tls_server.cpp
index 06a55debb..6fe266989 100644
--- a/src/lib/tls/tls_server.cpp
+++ b/src/lib/tls/tls_server.cpp
@@ -338,7 +338,8 @@ void Server::process_handshake_msg(const Handshake_State* active_state,
if(!m_policy.acceptable_protocol_version(negotiated_version))
{
throw TLS_Exception(Alert::PROTOCOL_VERSION,
- "Client version is unacceptable by policy");
+ "Client version " + negotiated_version.to_string() +
+ " is unacceptable by policy");
}
if(!initial_handshake && state.client_hello()->next_protocol_notification())