Do the same thing for cmake as well
@@ -110,13 +110,13 @@ if(ENABLE_BORINGSSL)
cmake_push_check_state()
set(CMAKE_REQUIRED_INCLUDES "${BORINGSSL_INCLUDE_DIR}")
set(CMAKE_REQUIRED_LIBRARIES "${BORINGSSL_LIBRARIES}")
- check_symbol_exists(SSL_provide_quic_data "openssl/ssl.h" HAVE_SSL_PROVIDE_QUIC_DATA)
- if(NOT HAVE_SSL_PROVIDE_QUIC_DATA)
+ check_symbol_exists(SSL_set_quic_early_data_context "openssl/ssl.h" HAVE_SSL_SET_QUIC_EARLY_DATA_CONTEXT)
+ if(NOT HAVE_SSL_SET_QUIC_EARLY_DATA_CONTEXT)
message(WARNING "Disabling BoringSSL due to lack of QUIC support in ${BORINGSSL_LIBRARIES}")
endif()
cmake_pop_check_state()
endif()
-if(ENABLE_BORINGSSL AND HAVE_SSL_PROVIDE_QUIC_DATA)
+if(ENABLE_BORINGSSL AND HAVE_SSL_SET_QUIC_EARLY_DATA_CONTEXT)
set(BORINGSSL_INCLUDE_DIRS ${BORINGSSL_INCLUDE_DIR})
set(HAVE_BORINGSSL 1)
set(HAVE_CRYPTO 1)
