41 |
#endif |
#endif |
42 |
|
|
43 |
char title[32] = ""; |
char title[32] = ""; |
44 |
char username[16]; |
char g_username[16]; |
45 |
char hostname[16]; |
char hostname[16]; |
46 |
char keymapname[16]; |
char keymapname[16]; |
47 |
int keylayout = 0x409; /* Defaults to US keyboard layout */ |
int keylayout = 0x409; /* Defaults to US keyboard layout */ |
51 |
int tcp_port_rdp = TCP_PORT_RDP; |
int tcp_port_rdp = TCP_PORT_RDP; |
52 |
int server_bpp = 8; |
int server_bpp = 8; |
53 |
int win_button_size = 0; /* If zero, disable single app mode */ |
int win_button_size = 0; /* If zero, disable single app mode */ |
54 |
BOOL bitmap_compression = True; |
BOOL g_bitmap_compression = True; |
55 |
BOOL sendmotion = True; |
BOOL sendmotion = True; |
56 |
BOOL orders = True; |
BOOL g_orders = True; |
57 |
BOOL encryption = True; |
BOOL g_encryption = True; |
58 |
BOOL packet_encryption = True; |
BOOL packet_encryption = True; |
59 |
BOOL desktop_save = True; |
BOOL desktop_save = True; |
60 |
BOOL fullscreen = False; |
BOOL fullscreen = False; |
188 |
#endif |
#endif |
189 |
|
|
190 |
case 'u': |
case 'u': |
191 |
STRNCPY(username, optarg, sizeof(username)); |
STRNCPY(g_username, optarg, sizeof(g_username)); |
192 |
username_option = 1; |
username_option = 1; |
193 |
break; |
break; |
194 |
|
|
268 |
break; |
break; |
269 |
|
|
270 |
case 'b': |
case 'b': |
271 |
orders = False; |
g_orders = False; |
272 |
break; |
break; |
273 |
|
|
274 |
case 'e': |
case 'e': |
275 |
encryption = False; |
g_encryption = False; |
276 |
break; |
break; |
277 |
case 'E': |
case 'E': |
278 |
packet_encryption = False; |
packet_encryption = False; |
341 |
return 1; |
return 1; |
342 |
} |
} |
343 |
|
|
344 |
STRNCPY(username, pw->pw_name, sizeof(username)); |
STRNCPY(g_username, pw->pw_name, sizeof(g_username)); |
345 |
} |
} |
346 |
|
|
347 |
if (hostname[0] == 0) |
if (hostname[0] == 0) |
385 |
/* By setting encryption to False here, we have an encrypted login |
/* By setting encryption to False here, we have an encrypted login |
386 |
packet but unencrypted transfer of other packets */ |
packet but unencrypted transfer of other packets */ |
387 |
if (!packet_encryption) |
if (!packet_encryption) |
388 |
encryption = False; |
g_encryption = False; |
389 |
|
|
390 |
|
|
391 |
DEBUG(("Connection successful.\n")); |
DEBUG(("Connection successful.\n")); |