MXS-2763: Log correct error for unsupported TLS versions

Previously when ssl_version was used with a value that is not supported on
the system, an unknown parameter error was returned. This could be
confusing and logging a proper error message should make it clear.
This commit is contained in:
Markus Mäkelä
2019-11-11 12:34:31 +02:00
parent 53ee7072ee
commit f7f865d4c3
4 changed files with 16 additions and 27 deletions

View File

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