MXS-2760: Fix ssl_version conversion

The value is now correctly converted to the enum values.
This commit is contained in:
Markus Mäkelä
2019-11-08 16:56:53 +02:00
parent 71e1f81adc
commit 638d1bf354

View File

@ -278,17 +278,13 @@ static const MXS_ENUM_VALUE ssl_values[] =
static const MXS_ENUM_VALUE ssl_version_values[] = static const MXS_ENUM_VALUE ssl_version_values[] =
{ {
{"MAX", {"MAX", SERVICE_SSL_TLS_MAX},
1},
#ifndef OPENSSL_1_1 #ifndef OPENSSL_1_1
{"TLSv10", {"TLSv10", SERVICE_TLS10 },
1},
#endif #endif
#ifdef OPENSSL_1_0 #ifdef OPENSSL_1_0
{"TLSv11", {"TLSv11", SERVICE_TLS11 },
1}, {"TLSv12", SERVICE_TLS12 },
{"TLSv12",
1},
#endif #endif
{NULL} {NULL}
}; };