]> granicus.if.org Git - curl/commitdiff
http2-openssl: verify that NPN functionality is present
authorDaniel Stenberg <daniel@haxx.se>
Thu, 30 Jan 2014 10:24:15 +0000 (11:24 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 30 Jan 2014 10:24:15 +0000 (11:24 +0100)
configure.ac
lib/vtls/openssl.c

index ab9bf0376b6d17c97b89c27dd07a728e6b2595e6..2bc86083fe3bcee75ca4ca95d001ae04fc8440ee 100644 (file)
@@ -1594,7 +1594,8 @@ if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
                     ENGINE_cleanup \
                     CRYPTO_cleanup_all_ex_data \
                     SSL_get_shutdown \
-                    SSLv2_client_method )
+                    SSLv2_client_method \
+                    SSL_CTX_set_next_proto_select_cb )
 
     dnl Make an attempt to detect if this is actually yassl's headers and
     dnl OpenSSL emulation layer. We still leave everything else believing
index 7374c133f3c58b978786f1d12fae3bdefcf215cc..264dcf7c6cffb3a442c8ba4dea30252c4800f095 100644 (file)
@@ -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.