mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-22 08:02:06 +02:00
This commit is contained in:

committed by
GitHub

parent
c77d021790
commit
59afdc2c04
@@ -189,7 +189,11 @@ void Context::init(const Params& params)
|
||||
else
|
||||
SSL_CTX_set_verify(_pSSLContext, params.verificationMode, &SSLManager::verifyClientCallback);
|
||||
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
|
||||
SSL_CTX_set_ciphersuites(_pSSLContext, params.cipherList.c_str());
|
||||
#else
|
||||
SSL_CTX_set_cipher_list(_pSSLContext, params.cipherList.c_str());
|
||||
#endif // OPENSSL_VERSION_NUMBER >= 0x30000000L
|
||||
SSL_CTX_set_verify_depth(_pSSLContext, params.verificationDepth);
|
||||
SSL_CTX_set_mode(_pSSLContext, SSL_MODE_AUTO_RETRY);
|
||||
SSL_CTX_set_session_cache_mode(_pSSLContext, SSL_SESS_CACHE_OFF);
|
||||
|
Reference in New Issue
Block a user