aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_extensions.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_extensions.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_extensions.cpp')
-rw-r--r--src/tls/tls_extensions.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tls/tls_extensions.cpp b/src/tls/tls_extensions.cpp
index c74790ea1..c57f7cc81 100644
--- a/src/tls/tls_extensions.cpp
+++ b/src/tls/tls_extensions.cpp
@@ -26,7 +26,7 @@ TLS_Extension* make_extension(TLS_Data_Reader& reader,
else if(code == TLSEXT_SAFE_RENEGOTIATION)
return new Renegotation_Extension(reader, size);
else if(code == TLSEXT_NEXT_PROTOCOL)
- return new Next_Protocol_Negotiation(reader, size);
+ return new Next_Protocol_Notification(reader, size);
else
return 0; // not known
}
@@ -230,8 +230,8 @@ Maximum_Fragment_Length::Maximum_Fragment_Length(TLS_Data_Reader& reader,
val = reader.get_byte();
}
-Next_Protocol_Negotiation::Next_Protocol_Negotiation(TLS_Data_Reader& reader,
- u16bit extension_size)
+Next_Protocol_Notification::Next_Protocol_Notification(TLS_Data_Reader& reader,
+ u16bit extension_size)
{
if(extension_size == 0)
return; // empty extension
@@ -251,7 +251,7 @@ Next_Protocol_Negotiation::Next_Protocol_Negotiation(TLS_Data_Reader& reader,
}
}
-MemoryVector<byte> Next_Protocol_Negotiation::serialize() const
+MemoryVector<byte> Next_Protocol_Notification::serialize() const
{
MemoryVector<byte> buf;