aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_client.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-01-04 18:46:49 +0000
committerlloyd <[email protected]>2012-01-04 18:46:49 +0000
commit550faf230b01c657b5883a35643e8b9865b122ca (patch)
tree14f24717e4b539e02408841a54b08f7530e9996b /src/tls/tls_client.cpp
parent01f21a93c66965876097ee1c989cf7b4ce1f9a2a (diff)
As someone pointed out on the TLS list, NPN isn't really a negotiation
per-se, it's a notification by the client. Rename accordingly.
Diffstat (limited to 'src/tls/tls_client.cpp')
-rw-r--r--src/tls/tls_client.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tls/tls_client.cpp b/src/tls/tls_client.cpp
index f796736fa..e79fb18d8 100644
--- a/src/tls/tls_client.cpp
+++ b/src/tls/tls_client.cpp
@@ -154,8 +154,8 @@ void TLS_Client::process_handshake_msg(Handshake_Type type,
"Server replied with compression method we didn't send");
}
- if(!state->client_hello->next_protocol_negotiation() &&
- state->server_hello->next_protocol_negotiation())
+ if(!state->client_hello->next_protocol_notification() &&
+ state->server_hello->next_protocol_notification())
{
throw TLS_Exception(HANDSHAKE_FAILURE,
"Server sent next protocol but we didn't request it");
@@ -350,7 +350,7 @@ void TLS_Client::process_handshake_msg(Handshake_Type type,
writer.activate(state->suite, state->keys, CLIENT);
- if(state->server_hello->next_protocol_negotiation())
+ if(state->server_hello->next_protocol_notification())
{
const std::string protocol =
state->client_npn_cb(state->server_hello->next_protocols());