some BE fixes - without these rdesktop wont run on IBM AIX - such as RS6000 PowerPC
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@175 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
51a944f431
commit
7e00abf141
10
rdp.c
10
rdp.c
@ -120,7 +120,7 @@ rdp_send_data(STREAM s, uint8 data_pdu_type)
|
|||||||
out_uint32_le(s, rdp_shareid);
|
out_uint32_le(s, rdp_shareid);
|
||||||
out_uint8(s, 0); /* pad */
|
out_uint8(s, 0); /* pad */
|
||||||
out_uint8(s, 1); /* streamid */
|
out_uint8(s, 1); /* streamid */
|
||||||
out_uint16(s, (length - 14));
|
out_uint16_le(s, (length - 14));
|
||||||
out_uint8(s, data_pdu_type);
|
out_uint8(s, data_pdu_type);
|
||||||
out_uint8(s, 0); /* compress_type */
|
out_uint8(s, 0); /* compress_type */
|
||||||
out_uint16(s, 0); /* compress_len */
|
out_uint16(s, 0); /* compress_len */
|
||||||
@ -274,8 +274,8 @@ rdp_out_bitmap_caps(STREAM s)
|
|||||||
out_uint16_le(s, RDP_CAPLEN_BITMAP);
|
out_uint16_le(s, RDP_CAPLEN_BITMAP);
|
||||||
|
|
||||||
out_uint16_le(s, 8); /* Preferred BPP */
|
out_uint16_le(s, 8); /* Preferred BPP */
|
||||||
out_uint16(s, 1); /* Receive 1 BPP */
|
out_uint16_le(s, 1); /* Receive 1 BPP */
|
||||||
out_uint16(s, 1); /* Receive 4 BPP */
|
out_uint16_le(s, 1); /* Receive 4 BPP */
|
||||||
out_uint16_le(s, 1); /* Receive 8 BPP */
|
out_uint16_le(s, 1); /* Receive 8 BPP */
|
||||||
out_uint16_le(s, 800); /* Desktop width */
|
out_uint16_le(s, 800); /* Desktop width */
|
||||||
out_uint16_le(s, 600); /* Desktop height */
|
out_uint16_le(s, 600); /* Desktop height */
|
||||||
@ -320,9 +320,9 @@ rdp_out_order_caps(STREAM s)
|
|||||||
out_uint8p(s, order_caps, 32); /* Orders supported */
|
out_uint8p(s, order_caps, 32); /* Orders supported */
|
||||||
out_uint16_le(s, 0x6a1); /* Text capability flags */
|
out_uint16_le(s, 0x6a1); /* Text capability flags */
|
||||||
out_uint8s(s, 6); /* Pad */
|
out_uint8s(s, 6); /* Pad */
|
||||||
out_uint32(s, desktop_save == False ? 0 : 0x38400); /* Desktop cache size */
|
out_uint32_le(s, desktop_save == False ? 0 : 0x38400); /* Desktop cache size */
|
||||||
out_uint32(s, 0); /* Unknown */
|
out_uint32(s, 0); /* Unknown */
|
||||||
out_uint32(s, 0x4e4); /* Unknown */
|
out_uint32_le(s, 0x4e4); /* Unknown */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Output bitmap cache capability set */
|
/* Output bitmap cache capability set */
|
||||||
|
4
secure.c
4
secure.c
@ -425,12 +425,12 @@ sec_out_mcs_data(STREAM s)
|
|||||||
out_uint32_le(s, 12);
|
out_uint32_le(s, 12);
|
||||||
out_uint8s(s, 64); /* reserved? 4 + 12 doublewords */
|
out_uint8s(s, 64); /* reserved? 4 + 12 doublewords */
|
||||||
|
|
||||||
out_uint16(s, 0xca01);
|
out_uint16_le(s, 0xca01);
|
||||||
out_uint16(s, 0);
|
out_uint16(s, 0);
|
||||||
|
|
||||||
/* Client encryption settings */
|
/* Client encryption settings */
|
||||||
out_uint16_le(s, SEC_TAG_CLI_CRYPT);
|
out_uint16_le(s, SEC_TAG_CLI_CRYPT);
|
||||||
out_uint16(s, 8); /* length */
|
out_uint16_le(s, 8); /* length */
|
||||||
out_uint32_le(s, encryption ? 0x3 : 0); /* encryption supported, 128-bit supported */
|
out_uint32_le(s, encryption ? 0x3 : 0); /* encryption supported, 128-bit supported */
|
||||||
s_mark_end(s);
|
s_mark_end(s);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user