]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
autotools: detect `wolfSSL_set_quic_use_legacy_code` like cmake does
authorViktor Szakats <commit@vsz.me>
Thu, 17 Apr 2025 14:27:53 +0000 (16:27 +0200)
committerViktor Szakats <commit@vsz.me>
Thu, 24 Apr 2025 17:46:28 +0000 (19:46 +0200)
Cherry-picked from #17082

Closes #17172

.github/scripts/cmp-config.pl
m4/curl-wolfssl.m4

index 2119142b4ae59f529081a3f2a914a8c49e14612d..f6dee00f9bbb894f8efa4d64a82e1e948071afbe 100755 (executable)
@@ -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,
index 2353b4083dfc80705e3c1ad0beda36a869afb61c..81355a7e1398501e3af0e6cb28f7fa0ddcee2911 100644 (file)
@@ -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