]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #468: OpenSSL 1.0.1 can no longer build Unbound.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 22 Apr 2021 07:00:15 +0000 (09:00 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 22 Apr 2021 07:00:15 +0000 (09:00 +0200)
config.h.in
configure
doc/Changelog
util/net_help.c

index 103ad9f0068cf834de44f02f7dbd39c37785360e..fd382694a0096f4fed6880fab10410a3728c17cf 100644 (file)
    function. */
 #undef HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_EVP_CB
 
+/* Define to 1 if you have the `SSL_get0_alpn_selected' function. */
+#undef HAVE_SSL_GET0_ALPN_SELECTED
+
 /* Define to 1 if you have the `SSL_get0_peername' function. */
 #undef HAVE_SSL_GET0_PEERNAME
 
index 266691d422c927fb5ed0ca0ed358c0e15c0c44db..f86683f76c1a0dbe62e4894eafe40f8f4dcc28d9 100755 (executable)
--- a/configure
+++ b/configure
@@ -18418,7 +18418,7 @@ done
 # these check_funcs need -lssl
 BAKLIBS="$LIBS"
 LIBS="-lssl $LIBS"
-for ac_func in OPENSSL_init_ssl SSL_CTX_set_security_level SSL_set1_host SSL_get0_peername X509_VERIFY_PARAM_set1_host SSL_CTX_set_ciphersuites SSL_CTX_set_tlsext_ticket_key_evp_cb SSL_CTX_set_alpn_select_cb
+for ac_func in OPENSSL_init_ssl SSL_CTX_set_security_level SSL_set1_host SSL_get0_peername X509_VERIFY_PARAM_set1_host SSL_CTX_set_ciphersuites SSL_CTX_set_tlsext_ticket_key_evp_cb SSL_CTX_set_alpn_select_cb SSL_get0_alpn_selected
 do :
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
index 3e714871323133456c9ac26f2f6f34d9b603c6c0..d6e1e485a1b73eda0a9e2eaeb4697acd4821a640 100644 (file)
@@ -1,6 +1,7 @@
 22 April 2021: Wouter
        - Merge #466 from FGasper: Support OpenSSLs that lack
          SSL_get0_alpn_selected.
+       - Fix #468: OpenSSL 1.0.1 can no longer build Unbound.
 
 13 April 2021: George
        - Fix documentation comment for files previously residing in checkconf/.
index bcc8d34bd6887af0a97d7fd5fed83e08ff84d495..06bc1f5dd7e68686a1130caf9440e86bca97e04f 100644 (file)
@@ -887,7 +887,7 @@ log_cert(unsigned level, const char* str, void* cert)
 }
 #endif /* HAVE_SSL */
 
-#if defined(HAVE_SSL) && defined(HAVE_NGHTTP2)
+#if defined(HAVE_SSL) && defined(HAVE_NGHTTP2) && defined(HAVE_SSL_CTX_SET_ALPN_SELECT_CB)
 static int alpn_select_cb(SSL* ATTR_UNUSED(ssl), const unsigned char** out,
        unsigned char* outlen, const unsigned char* in, unsigned int inlen,
        void* ATTR_UNUSED(arg))