Added command line option client-build-number
The smartcard channel behaviour is influenced by what build number is announced, expose this setting to modify by interested users.
This commit is contained in:
parent
4798af5132
commit
4f5eaedf7e
@ -2831,6 +2831,15 @@ int freerdp_client_settings_parse_command_line_arguments(rdpSettings* settings,
|
|||||||
|
|
||||||
settings->ParentWindowId = (UINT64)val;
|
settings->ParentWindowId = (UINT64)val;
|
||||||
}
|
}
|
||||||
|
CommandLineSwitchCase(arg, "client-build-number")
|
||||||
|
{
|
||||||
|
ULONGLONG val;
|
||||||
|
|
||||||
|
if (!value_to_uint(arg->Value, &val, 0, UINT32_MAX))
|
||||||
|
return COMMAND_LINE_ERROR_UNEXPECTED_VALUE;
|
||||||
|
if (!freerdp_settings_set_uint32(settings, FreeRDP_ClientBuild, (UINT32)val))
|
||||||
|
return COMMAND_LINE_ERROR_UNEXPECTED_VALUE;
|
||||||
|
}
|
||||||
CommandLineSwitchCase(arg, "bitmap-cache")
|
CommandLineSwitchCase(arg, "bitmap-cache")
|
||||||
{
|
{
|
||||||
settings->BitmapCacheEnabled = enable;
|
settings->BitmapCacheEnabled = enable;
|
||||||
|
@ -75,6 +75,8 @@ static const COMMAND_LINE_ARGUMENT_A args[] = {
|
|||||||
"Certificate name" },
|
"Certificate name" },
|
||||||
{ "cert-tofu", COMMAND_LINE_VALUE_FLAG, NULL, NULL, NULL, -1, NULL,
|
{ "cert-tofu", COMMAND_LINE_VALUE_FLAG, NULL, NULL, NULL, -1, NULL,
|
||||||
"Automatically accept certificate on first connect" },
|
"Automatically accept certificate on first connect" },
|
||||||
|
{ "client-build-number", COMMAND_LINE_VALUE_REQUIRED, "<number>", NULL, NULL, -1, NULL,
|
||||||
|
"Client Build Number sent to server (influences smartcard behaviour, see [MS-RDPESC])" },
|
||||||
{ "client-hostname", COMMAND_LINE_VALUE_REQUIRED, "<name>", NULL, NULL, -1, NULL,
|
{ "client-hostname", COMMAND_LINE_VALUE_REQUIRED, "<name>", NULL, NULL, -1, NULL,
|
||||||
"Client Hostname to send to server" },
|
"Client Hostname to send to server" },
|
||||||
{ "clipboard", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueTrue, NULL, -1, NULL,
|
{ "clipboard", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueTrue, NULL, -1, NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user