From 1c8bcbeb6a0b284718469a2eaa98baaa71aabea2 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 19 Oct 2022 13:56:01 +0200 Subject: [PATCH] Added deprecation warnings to /cert-* options --- client/common/cmdline.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/common/cmdline.c b/client/common/cmdline.c index 38c1510c8..e3983fa5e 100644 --- a/client/common/cmdline.c +++ b/client/common/cmdline.c @@ -3092,19 +3092,23 @@ int freerdp_client_settings_parse_command_line_arguments(rdpSettings* settings, } CommandLineSwitchCase(arg, "cert-name") { + WLog_WARN(TAG, "/cert-name is deprecated, use /cert:name instead"); if (!freerdp_settings_set_string(settings, FreeRDP_CertificateName, arg->Value)) return COMMAND_LINE_ERROR_MEMORY; } CommandLineSwitchCase(arg, "cert-ignore") { + WLog_WARN(TAG, "/cert-ignore is deprecated, use /cert:ignore instead"); settings->IgnoreCertificate = enable; } CommandLineSwitchCase(arg, "cert-tofu") { + WLog_WARN(TAG, "/cert-tofu is deprecated, use /cert:tofu instead"); settings->AutoAcceptCertificate = enable; } CommandLineSwitchCase(arg, "cert-deny") { + WLog_WARN(TAG, "/cert-deny is deprecated, use /cert:deny instead"); settings->AutoDenyCertificate = enable; } CommandLineSwitchCase(arg, "authentication")