fix(NetSSL): Incorrect setting of ciphersuites for TLSv1.3 #4610 (#4752)

This commit is contained in:
Aleksandar Fabijanic 2024-10-30 19:12:51 -05:00 committed by GitHub
parent c77d021790
commit 59afdc2c04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);