libfreerdp-core: added --no-auth option to skip authentication entirely

This commit is contained in:
Marc-André Moreau 2011-08-18 13:07:52 -04:00
parent c1252ae62f
commit 19217d51ba
4 changed files with 10 additions and 0 deletions

View File

@ -173,6 +173,7 @@ struct rdp_settings
uint32 selected_protocol;
uint32 encryption_method;
uint32 encryption_level;
boolean authentication;
rdpBlob server_random;
rdpBlob server_certificate;

View File

@ -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;

View File

@ -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);

View File

@ -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;