MXS-2762: Add ssl_version=TLSv13

Added new ssl_version value for TLSv1.3. This allows the list of accepted
protocol versions to be limited to all supported protocols. Previously
TLSv1.3 was only available with ssl_version=MAX.

Also fixed the enum value serialization to use a lowercase v. This causes
them to have the same value as the one used in the enum.
This commit is contained in:
Markus Mäkelä
2019-11-11 12:46:28 +02:00
parent f7f865d4c3
commit 774e9bc3f0
4 changed files with 32 additions and 3 deletions

View File

@ -282,6 +282,7 @@ static const MXS_ENUM_VALUE ssl_version_values[] =
{"TLSv10", SERVICE_TLS10 },
{"TLSv11", SERVICE_TLS11 },
{"TLSv12", SERVICE_TLS12 },
{"TLSv13", SERVICE_TLS13 },
{NULL}
};