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; |
406 |
unsigned int i; |
unsigned int i; |
407 |
|
|
408 |
if (g_num_channels > 0) |
if (g_num_channels > 0) |
409 |
length += g_num_channels*12 + 8; |
length += g_num_channels * 12 + 8; |
410 |
|
|
411 |
if (hostlen > 30) |
if (hostlen > 30) |
412 |
hostlen = 30; |
hostlen = 30; |
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)); |
779 |
case SEC_TAG_SRV_CHANNELS: |
case SEC_TAG_SRV_CHANNELS: |
780 |
/* FIXME: We should parse this information and |
/* FIXME: We should parse this information and |
781 |
use it to map RDP5 channels to MCS |
use it to map RDP5 channels to MCS |
782 |
channels */ |
channels */ |
783 |
break; |
break; |
784 |
|
|
785 |
default: |
default: |
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; |