Expose PasswordIsSmartcardPin settings from cmdline via password-is-pin arg

This commit is contained in:
Jukka-Pekka Virtanen 2017-09-23 14:26:38 +02:00 committed by Bernhard Miklautz
parent ad1425e145
commit 509059f8ea

View File

@ -196,6 +196,7 @@ static COMMAND_LINE_ARGUMENT_A args[] =
{ "scale-desktop", COMMAND_LINE_VALUE_REQUIRED, "<scale amount (%%)>", "100", NULL, -1, NULL, "Scaling factor for desktop applications (value between 100 and 500)" },
{ "scale-device", COMMAND_LINE_VALUE_REQUIRED, "<scale amount (%%)>", "100", NULL, -1, NULL, "Scaling factor for app store applications (100, 140, or 180)" },
{ "action-script", COMMAND_LINE_VALUE_REQUIRED, "<file name>", "~/.config/freerdp/action.sh", NULL, -1, NULL, "Action script" },
{ "password-is-pin", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueFalse, NULL, -1, NULL, "Use smart card authentication with password as smart card PIN"},
{ NULL, 0, NULL, NULL, NULL, -1, NULL, NULL }
};
@ -1000,6 +1001,10 @@ static int freerdp_client_command_line_post_filter(void* context,
settings->MultitransportFlags = (TRANSPORT_TYPE_UDP_FECR |
TRANSPORT_TYPE_UDP_FECL | TRANSPORT_TYPE_UDP_PREFERRED);
}
CommandLineSwitchCase(arg, "password-is-pin")
{
settings->PasswordIsSmartcardPin = TRUE;
}
CommandLineSwitchEnd(arg)
return status ? 1 : 0;
}