From b4e12030e7feb3a76af1e52b5781a91e5651ce85 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Fri, 11 Jul 2025 15:58:50 +0200 Subject: [PATCH] - For #1301: configure cant find SSL_is_quic in OpenSSL 3.5.1. --- configure | 6 ++++++ configure.ac | 6 ++++++ doc/Changelog | 1 + 3 files changed, 13 insertions(+) diff --git a/configure b/configure index bc1a15ffb..dfa572e4c 100755 --- 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 diff --git a/configure.ac b/configure.ac index 15e446d60..0374144a8 100644 --- a/configure.ac +++ b/configure.ac @@ -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 ]) diff --git a/doc/Changelog b/doc/Changelog index 6977c9bd4..e8ffa1920 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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. -- 2.39.5