From c1a9d84028cd5dfda13567d2f35e3262f9a76905 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 3 Jan 2012 01:05:21 -0800 Subject: [PATCH] Add default no-auth, RDP encryption. --- protocols/rdp/src/client.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/protocols/rdp/src/client.c b/protocols/rdp/src/client.c index b6f52f6d..07fa72ae 100644 --- a/protocols/rdp/src/client.c +++ b/protocols/rdp/src/client.c @@ -162,13 +162,23 @@ int guac_client_init(guac_client* client, int argc, char** argv) { /* Set settings */ settings = rdp_inst->settings; + /* --no-auth */ + settings->authentication = false; + + /* --sec rdp */ + settings->rdp_security = true; + settings->tls_security = false; + settings->nla_security = false; + settings->encryption = true; + settings->encryption_method = ENCRYPTION_METHOD_40BIT | ENCRYPTION_METHOD_128BIT | ENCRYPTION_METHOD_FIPS; + settings->encryption_level = ENCRYPTION_LEVEL_CLIENT_COMPATIBLE; + /* Default size */ settings->width = 1024; settings->height = 768; /* Set hostname */ settings->hostname = strdup(hostname); - settings->window_title = strdup(hostname); settings->username = "guest";