This is an automated email from the ASF dual-hosted git repository.

bneradt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 6d5308d884 Check for SSL_CTX_set_client_hello_cb in CMake (#10110)
6d5308d884 is described below

commit 6d5308d88493c3284f0ad34e95a2f5c018103b1d
Author: JosiahWI <41302989+josia...@users.noreply.github.com>
AuthorDate: Fri Jul 28 11:26:09 2023 -0500

    Check for SSL_CTX_set_client_hello_cb in CMake (#10110)
    
    This checks for the symbol in ssl.h and sets TS_USE_HELLO_CB if found.
---
 CMakeLists.txt                       | 1 +
 include/tscore/ink_config.h.cmake.in | 1 +
 2 files changed, 2 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9cc4d1e237..d771148036 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -281,6 +281,7 @@ check_symbol_exists(BIO_meth_get_destroy "openssl/bio.h" 
HAVE_BIO_METH_GET_DESTR
 check_symbol_exists(HMAC_CTX_new "openssl/hmac.h" HAVE_HMAC_CTX_NEW)
 check_symbol_exists(DH_get_2048_256 "openssl/dh.h" TS_USE_GET_DH_2048_256)
 check_symbol_exists(OPENSSL_NO_TLS_3 "openssl/ssl.h" TS_NO_USE_TLS12)
+check_symbol_exists(SSL_CTX_set_client_hello_cb "openssl/ssl.h" 
TS_USE_HELLO_CB)
 check_symbol_exists(
     SSL_CTX_set_keylog_callback
     "openssl/ssl.h"
diff --git a/include/tscore/ink_config.h.cmake.in 
b/include/tscore/ink_config.h.cmake.in
index e7bb905934..3da0258e68 100644
--- a/include/tscore/ink_config.h.cmake.in
+++ b/include/tscore/ink_config.h.cmake.in
@@ -131,6 +131,7 @@ const int DEFAULT_STACKSIZE = @DEFAULT_STACK_SIZE@;
 #cmakedefine01 TS_USE_EPOLL
 #cmakedefine01 TS_USE_FAST_SDK
 #cmakedefine01 TS_USE_GET_DH_2048_256
+#cmakedefine01 TS_USE_HELLO_CB
 #cmakedefine01 TS_USE_HWLOC
 #cmakedefine01 TS_USE_KQUEUE
 #cmakedefine01 TS_USE_LINUX_IO_URING

Reply via email to