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

@ -31,13 +31,9 @@ struct dcb;
typedef enum ssl_method_type
{
#ifndef OPENSSL_1_1
SERVICE_TLS10,
#endif
#ifdef OPENSSL_1_0
SERVICE_TLS11,
SERVICE_TLS12,
#endif
SERVICE_SSL_MAX,
SERVICE_TLS_MAX,
SERVICE_SSL_TLS_MAX,