Functions |
| void * | ssl_sha1_info_create (void) |
| void | ssl_sha1_info_delete (void *sha1_info) |
| void | ssl_sha1_clear (void *sha1_info) |
| void | ssl_sha1_transform (void *sha1_info, char *data, int len) |
| void | ssl_sha1_complete (void *sha1_info, char *data) |
| void * | ssl_md5_info_create (void) |
| void | ssl_md5_info_delete (void *md5_info) |
| void | ssl_md5_clear (void *md5_info) |
| void | ssl_md5_transform (void *md5_info, char *data, int len) |
| void | ssl_md5_complete (void *md5_info, char *data) |
| void * | ssl_rc4_info_create (void) |
| void | ssl_rc4_info_delete (void *rc4_info) |
| void | ssl_rc4_set_key (void *rc4_info, char *key, int len) |
| void | ssl_rc4_crypt (void *rc4_info, char *in_data, char *out_data, int len) |
| int | ssl_mod_exp (char *out, int out_len, char *in, int in_len, char *mod, int mod_len, char *exp, int exp_len) |
| void | sec_hash_48 (uint8 *out, uint8 *in, uint8 *salt1, uint8 *salt2, uint8 salt) |
| void | sec_hash_16 (uint8 *out, uint8 *in, uint8 *salt1, uint8 *salt2) |
| static void | sec_make_40bit (uint8 *key) |
| static void | sec_generate_keys (uint8 *client_random, uint8 *server_random, int rc4_key_size) |
| void | buf_out_uint32 (uint8 *buffer, uint32 value) |
| void | sec_sign (uint8 *signature, int siglen, uint8 *session_key, int keylen, uint8 *data, int datalen) |
| static void | sec_update (uint8 *key, uint8 *update_key) |
| static void | sec_encrypt (uint8 *data, int length) |
| void | sec_decrypt (uint8 *data, int length) |
| static void | sec_rsa_encrypt (uint8 *out, uint8 *in, int len, uint8 *modulus, uint8 *exponent) |
| STREAM | sec_init (uint32 flags, int maxlen) |
| void | sec_send_to_channel (STREAM s, uint32 flags, uint16 channel) |
| void | sec_send (STREAM s, uint32 flags) |
| static void | sec_establish_key (void) |
| static void | sec_out_mcs_data (STREAM s) |
| static BOOL | sec_parse_public_key (STREAM s, uint8 **modulus, uint8 **exponent) |
| static BOOL | sec_parse_crypt_info (STREAM s, uint32 *rc4_key_size, uint8 **server_random, uint8 **modulus, uint8 **exponent) |
| static void | sec_process_crypt_info (STREAM s) |
| static void | sec_process_srv_info (STREAM s) |
| void | sec_process_mcs_data (STREAM s) |
| STREAM | sec_recv (uint8 *rdpver) |
| BOOL | sec_connect (char *server, char *username) |
| BOOL | sec_reconnect (char *server) |
| void | sec_disconnect (void) |
| void | sec_reset_state (void) |
Variables |
| char | g_hostname [] |
| int | g_width |
| int | g_height |
| unsigned int | g_keylayout |
| int | g_keyboard_type |
| int | g_keyboard_subtype |
| int | g_keyboard_functionkeys |
| BOOL | g_encryption |
| BOOL | g_licence_issued |
| BOOL | g_use_rdp5 |
| BOOL | g_console_session |
| int | g_server_depth |
| uint16 | mcs_userid |
| VCHANNEL | g_channels [] |
| unsigned int | g_num_channels |
| static int | rc4_key_len |
| static void * | rc4_decrypt_key = 0 |
| static void * | rc4_encrypt_key = 0 |
| static void * | server_public_key |
| static uint8 | sec_sign_key [16] |
| static uint8 | sec_decrypt_key [16] |
| static uint8 | sec_encrypt_key [16] |
| static uint8 | sec_decrypt_update_key [16] |
| static uint8 | sec_encrypt_update_key [16] |
| static uint8 | sec_crypted_random [SEC_MODULUS_SIZE] |
| uint16 | g_server_rdp_version = 0 |
| static int | sec_encrypt_use_count = 0 |
| static int | sec_decrypt_use_count = 0 |
| static uint8 | pad_54 [40] |
| static uint8 | pad_92 [48] |