Mutate libs to use default system certs file
This commit is contained in:
parent
b695f4cb6c
commit
3dce2ca488
@ -64,7 +64,6 @@ elseif(UNIX)
|
||||
target_compile_definitions(ixwebsocket PRIVATE
|
||||
IXWEBSOCKET_USE_TLS
|
||||
IXWEBSOCKET_USE_OPEN_SSL
|
||||
IXWEBSOCKET_OPEN_SSL_CERTS="/etc/ssl/certs/"
|
||||
)
|
||||
target_compile_options(ixwebsocket PRIVATE
|
||||
-nodefaultlibs
|
||||
@ -95,7 +94,6 @@ elseif(WIN32)
|
||||
target_compile_definitions(ixwebsocket PRIVATE
|
||||
IXWEBSOCKET_USE_TLS
|
||||
IXWEBSOCKET_USE_OPEN_SSL
|
||||
IXWEBSOCKET_OPEN_SSL_CERTS=NULL
|
||||
)
|
||||
if(DEBUG)
|
||||
target_compile_options(ixwebsocket PRIVATE
|
||||
|
||||
@ -506,7 +506,7 @@ namespace ix
|
||||
else
|
||||
{
|
||||
if (SSL_CTX_load_verify_locations(
|
||||
_ssl_context, _tlsOptions.caFile.c_str(), IXWEBSOCKET_OPEN_SSL_CERTS) != 1)
|
||||
_ssl_context, _tlsOptions.caFile.c_str(), NULL) != 1)
|
||||
{
|
||||
auto sslErr = ERR_get_error();
|
||||
errMsg = "OpenSSL failed - SSL_CTX_load_verify_locations(\"" +
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user