]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: fix ECH detection in custom-patched OpenSSL
authorViktor Szakats <commit@vsz.me>
Sun, 16 Feb 2025 19:07:40 +0000 (20:07 +0100)
committerViktor Szakats <commit@vsz.me>
Sun, 16 Feb 2025 21:06:04 +0000 (22:06 +0100)
Typo found via #16352
Regression-from fd067bfb5b028ac41660decc5abb87f1cd093b6b #15596
Closes #16354

CMakeLists.txt

index 45c95f93e8e609fe8eeeaca1db3fbd29b233acd5..3af7844444f4b5d470cae9a45bc6ed71d686878f 100644 (file)
@@ -1020,7 +1020,7 @@ if(USE_ECH)
     endif()
     if(HAVE_BORINGSSL OR HAVE_AWSLC)
       curl_openssl_check_symbol_exists("SSL_set1_ech_config_list" "openssl/ssl.h" HAVE_SSL_SET1_ECH_CONFIG_LIST)
-    elseif(HAVE_OPENSSL)
+    elseif(USE_OPENSSL)
       curl_openssl_check_symbol_exists("SSL_set1_ech_config_list" "openssl/ech.h" HAVE_SSL_SET1_ECH_CONFIG_LIST)
     endif()
     if(HAVE_WOLFSSL_CTX_GENERATEECHCONFIG OR