summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl.h
diff options
context:
space:
mode:
authorjsing <>2015-02-12 03:45:25 +0000
committerjsing <>2015-02-12 03:45:25 +0000
commit86af7c3070260922d654cfef98d3b100ccbd79d1 (patch)
treea6567782f8c0fe3a5cd3a2b6d78b8e9a1e396085 /src/lib/libssl/ssl.h
parent5f7c1a2b2d1ad44c6535aac1d320379a2c952db8 (diff)
downloadopenbsd-86af7c3070260922d654cfef98d3b100ccbd79d1.tar.gz
openbsd-86af7c3070260922d654cfef98d3b100ccbd79d1.tar.bz2
openbsd-86af7c3070260922d654cfef98d3b100ccbd79d1.zip
unifdef -m -UOPENSSL_NO_NEXTPROTONEG - NPN is being replaced with ALPN,
however it is not likely to be removed any time soon. ok beck@ miod@
Diffstat (limited to 'src/lib/libssl/ssl.h')
-rw-r--r--src/lib/libssl/ssl.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h
index 75103426f3..626b967f15 100644
--- a/src/lib/libssl/ssl.h
+++ b/src/lib/libssl/ssl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl.h,v 1.81 2015/02/07 04:17:11 jsing Exp $ */ 1/* $OpenBSD: ssl.h,v 1.82 2015/02/12 03:45:25 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -848,7 +848,6 @@ struct ssl_ctx_st {
848 848
849 849
850 850
851# ifndef OPENSSL_NO_NEXTPROTONEG
852 /* Next protocol negotiation information */ 851 /* Next protocol negotiation information */
853 /* (for experimental NPN extension). */ 852 /* (for experimental NPN extension). */
854 853
@@ -863,7 +862,6 @@ struct ssl_ctx_st {
863 unsigned char *outlen, const unsigned char *in, 862 unsigned char *outlen, const unsigned char *in,
864 unsigned int inlen, void *arg); 863 unsigned int inlen, void *arg);
865 void *next_proto_select_cb_arg; 864 void *next_proto_select_cb_arg;
866# endif
867 865
868 /* 866 /*
869 * ALPN information 867 * ALPN information
@@ -962,7 +960,6 @@ void SSL_CTX_set_cookie_generate_cb(SSL_CTX *ctx,
962void SSL_CTX_set_cookie_verify_cb(SSL_CTX *ctx, 960void SSL_CTX_set_cookie_verify_cb(SSL_CTX *ctx,
963 int (*app_verify_cookie_cb)(SSL *ssl, unsigned char *cookie, 961 int (*app_verify_cookie_cb)(SSL *ssl, unsigned char *cookie,
964 unsigned int cookie_len)); 962 unsigned int cookie_len));
965#ifndef OPENSSL_NO_NEXTPROTONEG
966void 963void
967SSL_CTX_set_next_protos_advertised_cb(SSL_CTX *s, int (*cb)(SSL *ssl, 964SSL_CTX_set_next_protos_advertised_cb(SSL_CTX *s, int (*cb)(SSL *ssl,
968 const unsigned char **out, unsigned int *outlen, void *arg), void *arg); 965 const unsigned char **out, unsigned int *outlen, void *arg), void *arg);
@@ -979,7 +976,6 @@ void SSL_get0_next_proto_negotiated(const SSL *s, const unsigned char **data,
979#define OPENSSL_NPN_UNSUPPORTED 0 976#define OPENSSL_NPN_UNSUPPORTED 0
980#define OPENSSL_NPN_NEGOTIATED 1 977#define OPENSSL_NPN_NEGOTIATED 1
981#define OPENSSL_NPN_NO_OVERLAP 2 978#define OPENSSL_NPN_NO_OVERLAP 2
982#endif
983 979
984int SSL_CTX_set_alpn_protos(SSL_CTX *ctx, const unsigned char *protos, 980int SSL_CTX_set_alpn_protos(SSL_CTX *ctx, const unsigned char *protos,
985 unsigned int protos_len); 981 unsigned int protos_len);
@@ -1198,7 +1194,6 @@ struct ssl_st {
1198 1194
1199 SSL_CTX * initial_ctx; /* initial ctx, used to store sessions */ 1195 SSL_CTX * initial_ctx; /* initial ctx, used to store sessions */
1200 1196
1201#ifndef OPENSSL_NO_NEXTPROTONEG
1202 /* Next protocol negotiation. For the client, this is the protocol that 1197 /* Next protocol negotiation. For the client, this is the protocol that
1203 * we sent in NextProtocol and is set when handling ServerHello 1198 * we sent in NextProtocol and is set when handling ServerHello
1204 * extensions. 1199 * extensions.
@@ -1208,7 +1203,6 @@ struct ssl_st {
1208 * before the Finished message. */ 1203 * before the Finished message. */
1209 unsigned char *next_proto_negotiated; 1204 unsigned char *next_proto_negotiated;
1210 unsigned char next_proto_negotiated_len; 1205 unsigned char next_proto_negotiated_len;
1211#endif
1212 1206
1213#define session_ctx initial_ctx 1207#define session_ctx initial_ctx
1214 1208