37 |
extern int width; |
extern int width; |
38 |
extern int height; |
extern int height; |
39 |
extern int keylayout; |
extern int keylayout; |
40 |
extern BOOL encryption; |
extern BOOL g_encryption; |
41 |
extern BOOL g_licence_issued; |
extern BOOL g_licence_issued; |
42 |
extern BOOL use_rdp5; |
extern BOOL use_rdp5; |
43 |
extern int server_bpp; |
extern int server_bpp; |
480 |
/* Client encryption settings */ |
/* Client encryption settings */ |
481 |
out_uint16_le(s, SEC_TAG_CLI_CRYPT); |
out_uint16_le(s, SEC_TAG_CLI_CRYPT); |
482 |
out_uint16_le(s, 12); /* length */ |
out_uint16_le(s, 12); /* length */ |
483 |
out_uint32_le(s, encryption ? 0x3 : 0); /* encryption supported, 128-bit supported */ |
out_uint32_le(s, g_encryption ? 0x3 : 0); /* encryption supported, 128-bit supported */ |
484 |
out_uint32(s, 0); /* Unknown */ |
out_uint32(s, 0); /* Unknown */ |
485 |
|
|
486 |
DEBUG_RDP5(("g_num_channels is %d\n", g_num_channels)); |
DEBUG_RDP5(("g_num_channels is %d\n", g_num_channels)); |
800 |
|
|
801 |
while ((s = mcs_recv(&channel)) != NULL) |
while ((s = mcs_recv(&channel)) != NULL) |
802 |
{ |
{ |
803 |
if (encryption || !g_licence_issued) |
if (g_encryption || !g_licence_issued) |
804 |
{ |
{ |
805 |
in_uint32_le(s, sec_flags); |
in_uint32_le(s, sec_flags); |
806 |
|
|
844 |
return False; |
return False; |
845 |
|
|
846 |
// sec_process_mcs_data(&mcs_data); |
// sec_process_mcs_data(&mcs_data); |
847 |
if (encryption) |
if (g_encryption) |
848 |
sec_establish_key(); |
sec_establish_key(); |
849 |
xfree(mcs_data.data); |
xfree(mcs_data.data); |
850 |
return True; |
return True; |