Skip to content

Commit 6952dd5

Browse files
committed
[http] Allow to use any of openssl 3.x with civetweb
civetweb was designed when only openssl 3.0 was existing. Therefore name of define is `OPENSSL_API_3_0` Meanwhile there is openssl 3.1 and 3.2. While seems to be there is no changes in API both can be used with civetweb.
1 parent cde1073 commit 6952dd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/http/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ if(ssl)
7878
MESSAGE(STATUS "Use SSL API VERSION 1.1 for civetweb")
7979
target_compile_definitions(RHTTP PUBLIC -DOPENSSL_API_1_1)
8080
set(link_ssl ON)
81-
elseif((${ssl_major} EQUAL "3") AND ((${ssl_minor} EQUAL "0") OR (${ssl_minor} EQUAL "1")))
81+
elseif(${ssl_major} EQUAL "3")
8282
MESSAGE(STATUS "Use SSL API VERSION 3.${ssl_minor} for civetweb")
8383
target_compile_definitions(RHTTP PUBLIC -DOPENSSL_API_3_0)
8484
set(link_ssl ON)

0 commit comments

Comments
 (0)