mirror of
https://github.com/curl/curl.git
synced 2025-09-13 15:42:39 +03:00
cmake: update ECH code and minor fixups
- `openssl_check_symbol_exists()` expects a 4th argument now. Follow-up toedc2702a1f
#13373 - minor comment/script touch-ups. Follow-up toa362962b72
#11922 - fix indentation. Closes #13383
This commit is contained in:
parent
57af812e5f
commit
dad126b840
|
@ -37,7 +37,7 @@
|
||||||
# HAVE_GNUTLS_SRP: `gnutls_srp_verifier` present in GnuTLS
|
# HAVE_GNUTLS_SRP: `gnutls_srp_verifier` present in GnuTLS
|
||||||
# HAVE_SSL_CTX_SET_QUIC_METHOD: `SSL_CTX_set_quic_method` present in OpenSSL/wolfSSL
|
# HAVE_SSL_CTX_SET_QUIC_METHOD: `SSL_CTX_set_quic_method` present in OpenSSL/wolfSSL
|
||||||
# HAVE_QUICHE_CONN_SET_QLOG_FD: `quiche_conn_set_qlog_fd` present in QUICHE
|
# HAVE_QUICHE_CONN_SET_QLOG_FD: `quiche_conn_set_qlog_fd` present in QUICHE
|
||||||
# HAVE_ECH: ECH API checks for OpenSSL, boringssl or wolfSSL
|
# HAVE_ECH: ECH API checks for OpenSSL, BoringSSL or wolfSSL
|
||||||
#
|
#
|
||||||
# For each of the above variables, if the variable is DEFINED (either
|
# For each of the above variables, if the variable is DEFINED (either
|
||||||
# to ON or OFF), the symbol detection will be skipped. If the
|
# to ON or OFF), the symbol detection will be skipped. If the
|
||||||
|
@ -659,27 +659,26 @@ option(USE_HTTPSRR "Enable HTTPS RR support for ECH (experimental)" OFF)
|
||||||
option(USE_ECH "Enable ECH support" OFF)
|
option(USE_ECH "Enable ECH support" OFF)
|
||||||
if(USE_ECH)
|
if(USE_ECH)
|
||||||
if(USE_OPENSSL OR USE_WOLFSSL)
|
if(USE_OPENSSL OR USE_WOLFSSL)
|
||||||
# Be sure that the OpenSSL/wolfSSL library actually supports ECH.
|
# Be sure that the TLS library actually supports ECH.
|
||||||
if(NOT DEFINED HAVE_ECH)
|
if(NOT DEFINED HAVE_ECH)
|
||||||
if(USE_OPENSSL AND HAVE_BORINGSSL)
|
if(USE_OPENSSL AND HAVE_BORINGSSL)
|
||||||
openssl_check_symbol_exists(SSL_set1_ech_config_list "openssl/ssl.h" HAVE_ECH)
|
openssl_check_symbol_exists(SSL_set1_ech_config_list "openssl/ssl.h" HAVE_ECH "")
|
||||||
elseif(USE_OPENSSL)
|
elseif(USE_OPENSSL)
|
||||||
openssl_check_symbol_exists(SSL_ech_set1_echconfig "openssl/ech.h" HAVE_ECH)
|
openssl_check_symbol_exists(SSL_ech_set1_echconfig "openssl/ech.h" HAVE_ECH "")
|
||||||
elseif(USE_WOLFSSL)
|
elseif(USE_WOLFSSL)
|
||||||
openssl_check_symbol_exists(wolfSSL_CTX_GenerateEchConfig "wolfssl/options.h;wolfssl/ssl.h" HAVE_ECH)
|
openssl_check_symbol_exists(wolfSSL_CTX_GenerateEchConfig "wolfssl/options.h;wolfssl/ssl.h" HAVE_ECH "")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
if(NOT HAVE_ECH)
|
if(NOT HAVE_ECH)
|
||||||
message(FATAL_ERROR "ECH support missing in OpenSSL/BoringSSL/wolfSSL")
|
message(FATAL_ERROR "ECH support missing in OpenSSL/BoringSSL/wolfSSL")
|
||||||
else()
|
else()
|
||||||
message("ECH enabled.")
|
message(STATUS "ECH enabled.")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "ECH requires ECH-enablded OpenSSL, BoringSSL or wolfSSL")
|
message(FATAL_ERROR "ECH requires ECH-enablded OpenSSL, BoringSSL or wolfSSL")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
option(USE_NGHTTP2 "Use nghttp2 library" OFF)
|
option(USE_NGHTTP2 "Use nghttp2 library" OFF)
|
||||||
if(USE_NGHTTP2)
|
if(USE_NGHTTP2)
|
||||||
find_package(NGHTTP2 REQUIRED)
|
find_package(NGHTTP2 REQUIRED)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user