1 |
/* -*- c-basic-offset: 8 -*- |
/* -*- c-basic-offset: 8 -*- |
2 |
rdesktop: A Remote Desktop Protocol client. |
rdesktop: A Remote Desktop Protocol client. |
3 |
Protocol services - RDP encryption and licensing |
Protocol services - RDP encryption and licensing |
4 |
Copyright (C) Matthew Chapman 1999-2002 |
Copyright (C) Matthew Chapman 1999-2005 |
5 |
|
|
6 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
7 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
30 |
extern int g_width; |
extern int g_width; |
31 |
extern int g_height; |
extern int g_height; |
32 |
extern int g_keylayout; |
extern int g_keylayout; |
33 |
|
extern int g_keyboard_type; |
34 |
|
extern int g_keyboard_subtype; |
35 |
|
extern int g_keyboard_functionkeys; |
36 |
extern BOOL g_encryption; |
extern BOOL g_encryption; |
37 |
extern BOOL g_licence_issued; |
extern BOOL g_licence_issued; |
38 |
extern BOOL g_use_rdp5; |
extern BOOL g_use_rdp5; |
449 |
rdp_out_unistr(s, g_hostname, hostlen); |
rdp_out_unistr(s, g_hostname, hostlen); |
450 |
out_uint8s(s, 30 - hostlen); |
out_uint8s(s, 30 - hostlen); |
451 |
|
|
452 |
out_uint32_le(s, 4); |
/* See |
453 |
out_uint32(s, 0); |
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceddk40/html/cxtsksupportingremotedesktopprotocol.asp */ |
454 |
out_uint32_le(s, 12); |
out_uint32_le(s, g_keyboard_type); |
455 |
|
out_uint32_le(s, g_keyboard_subtype); |
456 |
|
out_uint32_le(s, g_keyboard_functionkeys); |
457 |
out_uint8s(s, 64); /* reserved? 4 + 12 doublewords */ |
out_uint8s(s, 64); /* reserved? 4 + 12 doublewords */ |
458 |
out_uint16_le(s, 0xca01); /* colour depth? */ |
out_uint16_le(s, 0xca01); /* colour depth? */ |
459 |
out_uint16_le(s, 1); |
out_uint16_le(s, 1); |
858 |
if (channel != MCS_GLOBAL_CHANNEL) |
if (channel != MCS_GLOBAL_CHANNEL) |
859 |
{ |
{ |
860 |
channel_process(s, channel); |
channel_process(s, channel); |
861 |
continue; |
*rdpver = 0xff; |
862 |
|
return s; |
863 |
} |
} |
864 |
|
|
865 |
return s; |
return s; |