summaryrefslogtreecommitdiffstats
path: root/lib/libssl/s3_lib.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2017-08-12 21:03:08 +0000
committerjsing <jsing@openbsd.org>2017-08-12 21:03:08 +0000
commit53b67670aed6045cad80223c1a6c17f141aad8a1 (patch)
treebed76e9fd170536e08ca8df37c663d6ce1f30ece /lib/libssl/s3_lib.c
parentUse the NET_LOCK() macro instead of handrolling it. (diff)
downloadwireguard-openbsd-53b67670aed6045cad80223c1a6c17f141aad8a1.tar.xz
wireguard-openbsd-53b67670aed6045cad80223c1a6c17f141aad8a1.zip
Remove NPN support.
NPN was never standardised and the last draft expired in October 2012. ALPN was standardised in July 2014 and has been supported in LibreSSL since December 2014. NPN has also been removed from Chromium in May 2016. TLS clients and servers that try to use/enable NPN will fail gracefully and fallback to the default protocol, since it will essentially appear that the otherside does not support NPN. At some point in the future we will actually remove the NPN related symbols entirely. ok bcook@ beck@ doug@
Diffstat (limited to 'lib/libssl/s3_lib.c')
-rw-r--r--lib/libssl/s3_lib.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libssl/s3_lib.c b/lib/libssl/s3_lib.c
index 3a11d628930..acbe30d8040 100644
--- a/lib/libssl/s3_lib.c
+++ b/lib/libssl/s3_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s3_lib.c,v 1.157 2017/08/12 02:55:22 jsing Exp $ */
+/* $OpenBSD: s3_lib.c,v 1.158 2017/08/12 21:03:08 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1705,10 +1705,6 @@ ssl3_clear(SSL *s)
s->internal->packet_length = 0;
s->version = TLS1_VERSION;
-
- free(s->internal->next_proto_negotiated);
- s->internal->next_proto_negotiated = NULL;
- s->internal->next_proto_negotiated_len = 0;
}
static long