aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tls/tls_server.cpp')
-rw-r--r--src/tls/tls_server.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tls/tls_server.cpp b/src/tls/tls_server.cpp
index 67e5a8eda..ed4cfe3f9 100644
--- a/src/tls/tls_server.cpp
+++ b/src/tls/tls_server.cpp
@@ -350,6 +350,10 @@ void Server::process_handshake_msg(const Handshake_State* active_state,
"Client version is unacceptable by policy");
}
+ if(!initial_handshake && state.client_hello()->next_protocol_notification())
+ throw TLS_Exception(Alert::HANDSHAKE_FAILURE,
+ "Client included NPN extension for renegotiation");
+
secure_renegotiation_check(state.client_hello());
set_protocol_version(negotiated_version);