Author: phater
Date: Tue May 16 17:03:20 2017
New Revision: 74557
URL:
http://svn.reactos.org/svn/reactos?rev=74557&view=rev
Log:
[MSTSC] Fix build
Modified:
trunk/reactos/base/applications/mstsc/rdp.c
trunk/reactos/base/applications/mstsc/secure.c
Modified: trunk/reactos/base/applications/mstsc/rdp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/rd…
==============================================================================
--- trunk/reactos/base/applications/mstsc/rdp.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/rdp.c [iso-8859-1] Tue May 16 17:03:20 2017
@@ -495,7 +495,7 @@
out_uint32_le(s, 1); /* Version */
out_uint32_le(s, g_reconnect_logonid); /* LogonId */
rdssl_hmac_md5(g_reconnect_random, sizeof(g_reconnect_random),
- g_client_random, SEC_RANDOM_SIZE, security_verifier);
+ (char *)g_client_random, SEC_RANDOM_SIZE, (char *)security_verifier);
out_uint8a(s, security_verifier, sizeof(security_verifier));
}
else
Modified: trunk/reactos/base/applications/mstsc/secure.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/se…
==============================================================================
--- trunk/reactos/base/applications/mstsc/secure.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/secure.c [iso-8859-1] Tue May 16 17:03:20 2017
@@ -54,10 +54,10 @@
rdssl_rc4_crypt(void * rc4_info, char * in_data, char * out_data, int len);
int
rdssl_mod_exp(char* out, int out_len, char* in, int in_len,
- char* mod, int mod_len, char* exp, int exp_len);
+ char* mod, int mod_len, char* exp, int exp_len);
int
rdssl_sign_ok(char* e_data, int e_len, char* n_data, int n_len,
- char* sign_data, int sign_len, char* sign_data2, int sign_len2, char* testkey);
+ char* sign_data, int sign_len, char* sign_data2, int sign_len2, char*
testkey);
extern char g_hostname[16];
extern int g_width;
@@ -892,7 +892,7 @@
sec_recv(uint8 * rdpver)
{
uint16 sec_flags;
- uint16 sec_flags_hi;
+ /* uint16 sec_flags_hi; */
uint16 channel;
STREAM s;
@@ -914,7 +914,7 @@
{
/* TS_SECURITY_HEADER */
in_uint16_le(s, sec_flags);
- in_uint16_le(s, sec_flags_hi);
+ in_uint8s(s, 2); /* sec_flags_hi */
if (g_encryption)
{