[client,cmdline] Fix /enforce-tlsv1_2 parsing

This commit is contained in:
Armin Novak 2022-11-16 14:55:52 +01:00 committed by Bernhard Miklautz
parent ca56b08719
commit 5ecd62a5f7

View File

@ -1799,7 +1799,7 @@ static int parse_tls_enforce(rdpSettings* settings, const char* Value)
{
struct map_t
{
char* name;
const char* name;
UINT16 version;
};
const struct map_t map[] = {
@ -1862,8 +1862,8 @@ static int parse_tls_options(rdpSettings* settings, const COMMAND_LINE_ARGUMENT_
}
CommandLineSwitchCase(arg, "enforce-tlsv1_2")
{
WLog_WARN(TAG, "Option /enforce-tlsv1_2 is deprecated, use /tls:enforce:1_2 instead");
rc = parse_tls_enforce(settings, arg->Value);
WLog_WARN(TAG, "Option /enforce-tlsv1_2 is deprecated, use /tls:enforce:1.2 instead");
rc = parse_tls_enforce(settings, "1.2");
}
#endif
CommandLineSwitchDefault(arg)