]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- For #1301: configure cant find SSL_is_quic in OpenSSL 3.5.1. master
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 11 Jul 2025 13:58:50 +0000 (15:58 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 11 Jul 2025 13:58:50 +0000 (15:58 +0200)
configure
configure.ac
doc/Changelog

index bc1a15ffb1665888ba2c4938af7fc08dc2e638ee..dfa572e4cc1f538846544f3c08b19bd1f7da9d34 100755 (executable)
--- a/configure
+++ b/configure
@@ -22560,6 +22560,10 @@ then :
 fi
 
 
+    # these check_funcs need -lssl
+    BAKLIBS="$LIBS"
+    LIBS="-lssl $LIBS"
+
   for ac_func in SSL_is_quic
 do :
   ac_fn_c_check_func "$LINENO" "SSL_is_quic" "ac_cv_func_SSL_is_quic"
@@ -22572,6 +22576,8 @@ else $as_nop
 fi
 
 done
+    LIBS="$BAKLIBS"
+
     ac_fn_c_check_type "$LINENO" "struct ngtcp2_version_cid" "ac_cv_type_struct_ngtcp2_version_cid" "$ac_includes_default
     #include <ngtcp2/ngtcp2.h>
 
index 15e446d60e446b0d02d68cd311c93bf2249cd2ae..0374144a835708c942603949e17b84d542b9c6e8 100644 (file)
@@ -1626,7 +1626,13 @@ if test x_$withval = x_yes -o x_$withval != x_no; then
        ])
     ])
     AC_CHECK_FUNCS([ngtcp2_crypto_encrypt_cb ngtcp2_ccerr_default ngtcp2_conn_in_closing_period ngtcp2_conn_in_draining_period ngtcp2_conn_get_max_local_streams_uni ngtcp2_crypto_quictls_from_ossl_encryption_level ngtcp2_crypto_quictls_configure_server_context ngtcp2_crypto_quictls_configure_client_context ngtcp2_crypto_quictls_init ngtcp2_conn_get_num_scid ngtcp2_conn_tls_early_data_rejected ngtcp2_conn_encode_0rtt_transport_params])
+
+    # these check_funcs need -lssl
+    BAKLIBS="$LIBS"
+    LIBS="-lssl $LIBS"
     AC_CHECK_FUNCS([SSL_is_quic], [], [AC_MSG_ERROR([No QUIC support detected in OpenSSL. Need OpenSSL version with QUIC support to enable DNS over QUIC with libngtcp2.])])
+    LIBS="$BAKLIBS"
+
     AC_CHECK_TYPES([struct ngtcp2_version_cid, ngtcp2_encryption_level],,,[AC_INCLUDES_DEFAULT
     #include <ngtcp2/ngtcp2.h>
     ])
index 6977c9bd4bc023a32313a99e7e1ab01dee714253..e8ffa1920190d00d8a0c807f5a9ba3e612d75d2c 100644 (file)
@@ -1,5 +1,6 @@
 11 July 2025: Wouter
        - Fix detection of SSL_CTX_set_tmp_ecdh function.
+       - For #1301: configure cant find SSL_is_quic in OpenSSL 3.5.1.
 
 8 July 2025: Wouter
        - Fix to improve dnstap discovery on Fedora.