From 97010abaf527fdbe6e308cb3570f9167c1dc9ec1 Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 6 Oct 2014 01:23:38 +0000 Subject: Specify version number in message when we reject due to policy --- src/lib/tls/tls_server.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/tls/tls_server.cpp') 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()) -- cgit v1.2.3