- enforce TLS 1.2 usage

This commit is contained in:
Dmytro Bogovych 2022-09-15 14:33:38 +03:00
parent d07eab796f
commit c2e9985bc2
1 changed files with 1 additions and 1 deletions

View File

@ -1040,7 +1040,7 @@ BaseSecurity::BaseSecurity (const CipherList& cipherSuite) :
mRootSslCerts = X509_STORE_new();
assert(mRootTlsCerts && mRootSslCerts);
mTlsCtx = SSL_CTX_new( TLSv1_method() );
mTlsCtx = SSL_CTX_new( TLSv1_2_method() );
if (!mTlsCtx)
{
ErrLog(<< "SSL_CTX_new failed, dumping OpenSSL error stack:");