aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-01-30 11:24:15 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-01-30 11:24:15 +0100
commit99b4ff8b6f6681ef1f5c2a0ccab49b95aa15b75c (patch)
tree5d2b1596a3f3ae472e5163488a1552c770d9b65b /lib/vtls
parent22c198fa89512c76f916d7d3909d113bb32ddcd0 (diff)
http2-openssl: verify that NPN functionality is present
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/openssl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 7374c133f..264dcf7c6 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -1400,6 +1400,12 @@ static void ssl_tls_trace(int direction, int ssl_ver, int content_type,
#endif
#ifdef USE_NGHTTP2
+
+#if !defined(HAVE_SSL_CTX_SET_NEXT_PROTO_SELECT_CB) || \
+ defined(OPENSSL_NO_NEXTPROTONEG)
+#error http2 builds require OpenSSL with NPN support
+#endif
+
/*
* in is a list of lenght prefixed strings. this function has to select
* the protocol we want to use from the list and write its string into out.