X-Git-Url: https://git.sesse.net/?p=rdpsrv;a=blobdiff_plain;f=secure.c;h=1f7797b023e73fc05601a09ad89dfe9fbc8d0ebf;hp=56c8bef117fba0929c4d2c3e129adfaf8be2bc44;hb=55a546ab6b5970438e6cca1a962ec4e7dd669d11;hpb=99f2e8c32508ab193c1d42221c86cb7fca4be9ab diff --git a/secure.c b/secure.c index 56c8bef..1f7797b 100644 --- a/secure.c +++ b/secure.c @@ -39,12 +39,12 @@ extern uint16 mcs_userid; extern VCHANNEL g_channels[]; extern unsigned int g_num_channels; -static int rc4_key_len; +int rc4_key_len; static RC4_KEY rc4_decrypt_key; static RC4_KEY rc4_encrypt_key; static RSA *server_public_key; -static uint8 sec_sign_key[16]; +uint8 sec_sign_key[16]; static uint8 sec_decrypt_key[16]; static uint8 sec_encrypt_key[16]; static uint8 sec_decrypt_update_key[16]; @@ -254,7 +254,7 @@ sec_update(uint8 * key, uint8 * update_key) } /* Encrypt data using RC4 */ -static void +void sec_encrypt(uint8 * data, int length) { static int use_count; @@ -375,7 +375,7 @@ sec_send_to_channel(STREAM s, uint32 flags, uint16 channel) flags &= ~SEC_ENCRYPT; datalen = s->end - s->p - 8; -#if WITH_DEBUG +#if WITH_DEBUG && 0 DEBUG(("Sending encrypted packet:\n")); hexdump(s->p + 8, datalen); #endif