diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/tls/tls_client.cpp | 3 | ||||
-rw-r--r-- | src/lib/tls/tls_server.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/tls/tls_client.cpp b/src/lib/tls/tls_client.cpp index 3de9130d4..029aa00c4 100644 --- a/src/lib/tls/tls_client.cpp +++ b/src/lib/tls/tls_client.cpp @@ -272,7 +272,8 @@ void Client::process_handshake_msg(const Handshake_State* active_state, if(!m_policy.acceptable_protocol_version(state.version())) { throw TLS_Exception(Alert::PROTOCOL_VERSION, - "Server version is unacceptable by policy"); + "Server version " + state.version().to_string() + + " is unacceptable by policy"); } if(state.ciphersuite().sig_algo() != "") 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()) |