diff options
author | lloyd <[email protected]> | 2014-10-06 01:23:38 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-10-06 01:23:38 +0000 |
commit | 97010abaf527fdbe6e308cb3570f9167c1dc9ec1 (patch) | |
tree | 3ee88257f0489973028af97d8ac4e0693f409969 /src/lib/tls | |
parent | dfc95bc5a95a1af1f4fe7f28168ac27a6e1b841b (diff) |
Specify version number in message when we reject due to policy
Diffstat (limited to 'src/lib/tls')
-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()) |