mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-01-08 16:34:07 +08:00
libfreerdp-core: added --no-auth option to skip authentication entirely
This commit is contained in:
parent
c1252ae62f
commit
19217d51ba
@ -173,6 +173,7 @@ struct rdp_settings
|
||||
uint32 selected_protocol;
|
||||
uint32 encryption_method;
|
||||
uint32 encryption_level;
|
||||
boolean authentication;
|
||||
|
||||
rdpBlob server_random;
|
||||
rdpBlob server_certificate;
|
||||
|
@ -64,6 +64,8 @@ rdpSettings* settings_new()
|
||||
settings->encryption_method = ENCRYPTION_METHOD_NONE;
|
||||
settings->encryption_level = ENCRYPTION_LEVEL_NONE;
|
||||
|
||||
settings->authentication = True;
|
||||
|
||||
/*
|
||||
settings->order_support[NEG_DSTBLT_INDEX] = True;
|
||||
settings->order_support[NEG_PATBLT_INDEX] = True;
|
||||
|
@ -106,6 +106,9 @@ boolean transport_connect_nla(rdpTransport* transport)
|
||||
|
||||
/* Network Level Authentication */
|
||||
|
||||
if (transport->settings->authentication != True)
|
||||
return True;
|
||||
|
||||
if (transport->credssp == NULL)
|
||||
transport->credssp = credssp_new(transport);
|
||||
|
||||
|
@ -188,6 +188,10 @@ int freerdp_parse_args(rdpSettings* settings, int argc, char** argv,
|
||||
{
|
||||
settings->offscreen_bitmap_cache = 0;
|
||||
}
|
||||
else if (strcmp("--no-auth", argv[index]) == 0)
|
||||
{
|
||||
settings->authentication = False;
|
||||
}
|
||||
else if (strcmp("--no-fastpath", argv[index]) == 0)
|
||||
{
|
||||
settings->fastpath_input = False;
|
||||
|
Loading…
Reference in New Issue
Block a user