summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2017-08-30 16:24:21 +0000
committerjsing <jsing@openbsd.org>2017-08-30 16:24:21 +0000
commit918a0d980660a4dbf10357fcbc4c758f839c1191 (patch)
tree62b57576c99c1384a52986f698c7f831be2d9721 /lib/libssl/ssl_lib.c
parentDecode pin mux configuration correctly in gpio(4) support code such that (diff)
downloadwireguard-openbsd-918a0d980660a4dbf10357fcbc4c758f839c1191.tar.xz
wireguard-openbsd-918a0d980660a4dbf10357fcbc4c758f839c1191.zip
Bring back the NPN related symbols.
Several pieces of software make use of these based on a conditional around OPENSSL_NPN_NEGOTIATED, rather than using the presence of the symbols, the non-existence of a OPENSSL_NO_NEXTPROTONEG define or even the existence of the TLS extension type. Unfortunately we cannot remove OPENSSL_NPN_NEGOTIATED since the API for ALPN was effectively botched and reuses two parts from the NPN implementation, rather than providing ALPN specific or generic versions.
Diffstat (limited to 'lib/libssl/ssl_lib.c')
-rw-r--r--lib/libssl/ssl_lib.c26
1 files changed, 25 insertions, 1 deletions
diff --git a/lib/libssl/ssl_lib.c b/lib/libssl/ssl_lib.c
index b365ebd4966..471fd7009e2 100644
--- a/lib/libssl/ssl_lib.c
+++ b/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_lib.c,v 1.169 2017/08/28 17:36:58 jsing Exp $ */
+/* $OpenBSD: ssl_lib.c,v 1.170 2017/08/30 16:24:21 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1590,6 +1590,30 @@ found:
return (status);
}
+/* SSL_get0_next_proto_negotiated is deprecated. */
+void
+SSL_get0_next_proto_negotiated(const SSL *s, const unsigned char **data,
+ unsigned *len)
+{
+ *data = NULL;
+ *len = 0;
+}
+
+/* SSL_CTX_set_next_protos_advertised_cb is deprecated. */
+void
+SSL_CTX_set_next_protos_advertised_cb(SSL_CTX *ctx, int (*cb) (SSL *ssl,
+ const unsigned char **out, unsigned int *outlen, void *arg), void *arg)
+{
+}
+
+/* SSL_CTX_set_next_proto_select_cb is deprecated. */
+void
+SSL_CTX_set_next_proto_select_cb(SSL_CTX *ctx, int (*cb) (SSL *s,
+ unsigned char **out, unsigned char *outlen, const unsigned char *in,
+ unsigned int inlen, void *arg), void *arg)
+{
+}
+
/*
* SSL_CTX_set_alpn_protos sets the ALPN protocol list to the specified
* protocols, which must be in wire-format (i.e. a series of non-empty,