summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl3.h
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-12-10 14:58:56 +0000
committerjsing <jsing@openbsd.org>2014-12-10 14:58:56 +0000
commitd436807c3fafcdd2569d3d41472f012dd477b2a9 (patch)
treea15b7e477ed8ba85a84f131c7324004133d3ba7b /lib/libssl/ssl3.h
parentadd stdint.h to ssl.h. (diff)
downloadwireguard-openbsd-d436807c3fafcdd2569d3d41472f012dd477b2a9.tar.xz
wireguard-openbsd-d436807c3fafcdd2569d3d41472f012dd477b2a9.zip
Add support for ALPN.
Based on OpenSSL and BoringSSL. ok bcook@
Diffstat (limited to 'lib/libssl/ssl3.h')
-rw-r--r--lib/libssl/ssl3.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/libssl/ssl3.h b/lib/libssl/ssl3.h
index 5b9e31754ba..2055f0f8344 100644
--- a/lib/libssl/ssl3.h
+++ b/lib/libssl/ssl3.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl3.h,v 1.29 2014/11/18 05:33:43 miod Exp $ */
+/* $OpenBSD: ssl3.h,v 1.30 2014/12/10 14:58:56 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -497,6 +497,20 @@ typedef struct ssl3_state_st {
int next_proto_neg_seen;
#endif
+ /*
+ * ALPN information
+ * (we are in the process of transitioning from NPN to ALPN).
+ */
+
+ /*
+ * In a server these point to the selected ALPN protocol after the
+ * ClientHello has been processed. In a client these contain the
+ * protocol that the server selected once the ServerHello has been
+ * processed.
+ */
+ unsigned char *alpn_selected;
+ unsigned int alpn_selected_len;
+
/* This is set to true if we believe that this is a version of Safari
* running on OS X 10.6 or newer. We wish to know this because Safari
* on 10.8 .. 10.8.3 has broken ECDHE-ECDSA support. */