Merge branch 'master' into server

This commit is contained in:
Vic Lee 2011-08-19 01:16:52 +08:00
commit 720860b581
5 changed files with 12 additions and 1 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

@ -63,7 +63,7 @@ boolean rdp_client_connect(rdpRdp* rdp)
rdp->settings->autologon = 1;
nego_init(rdp->nego);
nego_set_target(rdp->nego, rdp->settings->hostname, 3389);
nego_set_target(rdp->nego, rdp->settings->hostname, rdp->settings->port);
nego_set_cookie(rdp->nego, rdp->settings->username);
nego_enable_rdp(rdp->nego, rdp->settings->rdp_security);
nego_enable_nla(rdp->nego, rdp->settings->nla_security);

View File

@ -52,6 +52,7 @@ rdpSettings* settings_new()
settings->kbd_fn_keys = 0;
settings->kbd_layout = 0x409;
settings->encryption = False;
settings->port = 3389;
settings->performance_flags =
PERF_DISABLE_FULLWINDOWDRAG |
@ -63,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

@ -111,6 +111,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;