From: Viktor Szakats Date: Thu, 17 Apr 2025 14:27:53 +0000 (+0200) Subject: autotools: detect `wolfSSL_set_quic_use_legacy_code` like cmake does X-Git-Tag: curl-8_14_0~221 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4a15cfc99f525dc917c08b69ff0ba4eccd08ce63;p=thirdparty%2Fcurl.git autotools: detect `wolfSSL_set_quic_use_legacy_code` like cmake does Cherry-picked from #17082 Closes #17172 --- diff --git a/.github/scripts/cmp-config.pl b/.github/scripts/cmp-config.pl index 2119142b4a..f6dee00f9b 100755 --- a/.github/scripts/cmp-config.pl +++ b/.github/scripts/cmp-config.pl @@ -76,6 +76,7 @@ my %remove = ( '#define HAVE_SYS_XATTR_H 1' => 1, '#define HAVE_UNICODE_UIDNA_H 1' => 1, '#define HAVE_WOLFSSH_SSH_H 1' => 1, + '#define HAVE_WOLFSSL_SET_QUIC_USE_LEGACY_CODEPOINT 1' => 1, '#define HAVE_ZSTD 1' => 1, '#define HAVE_ZSTD_H 1' => 1, '#define LT_OBJDIR ".libs/"' => 1, diff --git a/m4/curl-wolfssl.m4 b/m4/curl-wolfssl.m4 index 2353b4083d..81355a7e13 100644 --- a/m4/curl-wolfssl.m4 +++ b/m4/curl-wolfssl.m4 @@ -108,7 +108,6 @@ if test "x$OPT_WOLFSSL" != xno; then WOLFSSL_ENABLED=1 USE_WOLFSSL="yes" ssl_msg="wolfSSL" - QUIC_ENABLED=yes test wolfssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes ], [ @@ -130,6 +129,9 @@ if test "x$OPT_WOLFSSL" != xno; then LIBS="$addlib -lm $LIBS" + dnl is this wolfSSL providing the original QUIC API? + AC_CHECK_FUNCS([wolfSSL_set_quic_use_legacy_codepoint], [QUIC_ENABLED=yes]) + dnl wolfSSL needs configure --enable-opensslextra to have *get_peer* dnl DES* is needed for NTLM support and lives in the OpenSSL compatibility dnl layer