cmake: fix ECH detection in custom-patched OpenSSL

Typo found via #16352
Regression-from fd067bfb5b #15596
Closes #16354
This commit is contained in:
Viktor Szakats 2025-02-16 20:07:40 +01:00
parent 1d0ca25d8b
commit 0d4a6a9500
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View 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