Merge branch '2.3' into 2.4
This commit is contained in:
@ -245,7 +245,7 @@ bool SSLContext::init()
|
||||
|
||||
|
||||
case SERVICE_TLS11:
|
||||
#ifdef OPENSSL_1_0
|
||||
#if defined (OPENSSL_1_0) || defined (OPENSSL_1_1)
|
||||
m_method = (SSL_METHOD*)TLSv1_1_method();
|
||||
#else
|
||||
MXS_ERROR("TLSv1.1 is not supported on this system.");
|
||||
@ -254,7 +254,7 @@ bool SSLContext::init()
|
||||
break;
|
||||
|
||||
case SERVICE_TLS12:
|
||||
#ifdef OPENSSL_1_0
|
||||
#if defined (OPENSSL_1_0) || defined (OPENSSL_1_1)
|
||||
m_method = (SSL_METHOD*)TLSv1_2_method();
|
||||
#else
|
||||
MXS_ERROR("TLSv1.2 is not supported on this system.");
|
||||
@ -340,7 +340,7 @@ bool SSLContext::init()
|
||||
/* Load the CA certificate into the SSL_CTX structure */
|
||||
if (!SSL_CTX_load_verify_locations(m_ctx, m_cfg.ca.c_str(), NULL))
|
||||
{
|
||||
MXS_ERROR("Failed to set Certificate Authority file");
|
||||
MXS_ERROR("Failed to set Certificate Authority file: %s", get_ssl_errors());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user