|
@@ -227,6 +227,10 @@ message(STATUS "Compile for OpenSSL 1.0 API - ${CIVETWEB_SSL_OPENSSL_API_1_0}")
|
|
option(CIVETWEB_SSL_OPENSSL_API_1_1 "Use the OpenSSL 1.1 API" ON)
|
|
option(CIVETWEB_SSL_OPENSSL_API_1_1 "Use the OpenSSL 1.1 API" ON)
|
|
message(STATUS "Compile for OpenSSL 1.1 API - ${CIVETWEB_SSL_OPENSSL_API_1_1}")
|
|
message(STATUS "Compile for OpenSSL 1.1 API - ${CIVETWEB_SSL_OPENSSL_API_1_1}")
|
|
|
|
|
|
|
|
+# OpenSSL 1.1 API
|
|
|
|
+option(CIVETWEB_SSL_OPENSSL_API_3_0 "Use the OpenSSL 3.0 API" OFF)
|
|
|
|
+message(STATUS "Compile for OpenSSL 3.0 API - ${CIVETWEB_SSL_OPENSSL_API_3_0}")
|
|
|
|
+
|
|
# Dynamically load or link the SSL libraries
|
|
# Dynamically load or link the SSL libraries
|
|
cmake_dependent_option(
|
|
cmake_dependent_option(
|
|
CIVETWEB_ENABLE_SSL_DYNAMIC_LOADING "Dynamically loads the SSL library rather than linking it" ON
|
|
CIVETWEB_ENABLE_SSL_DYNAMIC_LOADING "Dynamically loads the SSL library rather than linking it" ON
|
|
@@ -536,9 +540,19 @@ endif()
|
|
if(CIVETWEB_SSL_OPENSSL_API_1_1)
|
|
if(CIVETWEB_SSL_OPENSSL_API_1_1)
|
|
add_definitions(-DOPENSSL_API_1_1)
|
|
add_definitions(-DOPENSSL_API_1_1)
|
|
endif()
|
|
endif()
|
|
|
|
+if(CIVETWEB_SSL_OPENSSL_API_3_0)
|
|
|
|
+ add_definitions(-DOPENSSL_API_3_0)
|
|
|
|
+endif()
|
|
if(CIVETWEB_SSL_OPENSSL_API_1_0 AND CIVETWEB_SSL_OPENSSL_API_1_1)
|
|
if(CIVETWEB_SSL_OPENSSL_API_1_0 AND CIVETWEB_SSL_OPENSSL_API_1_1)
|
|
message(FATAL_ERROR "Multiple SSL API versions defined")
|
|
message(FATAL_ERROR "Multiple SSL API versions defined")
|
|
endif()
|
|
endif()
|
|
|
|
+if(CIVETWEB_SSL_OPENSSL_API_1_0 AND CIVETWEB_SSL_OPENSSL_API_3_0)
|
|
|
|
+ message(FATAL_ERROR "Multiple SSL API versions defined")
|
|
|
|
+endif()
|
|
|
|
+if(CIVETWEB_SSL_OPENSSL_API_1_1 AND CIVETWEB_SSL_OPENSSL_API_3_0)
|
|
|
|
+ message(FATAL_ERROR "Multiple SSL API versions defined")
|
|
|
|
+endif()
|
|
|
|
+
|
|
|
|
|
|
add_definitions(-DUSE_STACK_SIZE=${CIVETWEB_THREAD_STACK_SIZE})
|
|
add_definitions(-DUSE_STACK_SIZE=${CIVETWEB_THREAD_STACK_SIZE})
|
|
|
|
|