X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=secure.c;fp=secure.c;h=1f7797b023e73fc05601a09ad89dfe9fbc8d0ebf;hb=55a546ab6b5970438e6cca1a962ec4e7dd669d11;hp=4a16ceaec2cbbc0f2605f908d03a45cab060f63c;hpb=d7f4fdca92c39405a79d71d3910ff114e0a692f0;p=rdpsrv diff --git a/secure.c b/secure.c index 4a16cea..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;