comparison src/protocols/qq/im.c @ 13871:2be9dfa9569b

[gaim-migrate @ 16341] Fixed a bug that prevented libqq from being loaded as a plugin. committer: Tailor Script <tailor@pidgin.im>
author Mark Huetsch <markhuetsch>
date Mon, 26 Jun 2006 03:44:39 +0000
parents 983fd420e86b
children ef8490f9e823
comparison
equal deleted inserted replaced
13870:983fd420e86b 13871:2be9dfa9569b
46 46
47 #define QQ_SEND_IM_REPLY_OK 0x00 47 #define QQ_SEND_IM_REPLY_OK 0x00
48 #define DEFAULT_FONT_NAME_LEN 4 48 #define DEFAULT_FONT_NAME_LEN 4
49 49
50 // a debug function 50 // a debug function
51 static void _qq_show_packet(gchar * desc, gchar * buf, gint len); 51 void _qq_show_packet(gchar * desc, gchar * buf, gint len);
52 52
53 enum 53 enum
54 { 54 {
55 QQ_NORMAL_IM_TEXT = 0x000b, 55 QQ_NORMAL_IM_TEXT = 0x000b,
56 QQ_NORMAL_IM_FILE_REQUEST_TCP = 0x0001, //gfhuang 56 QQ_NORMAL_IM_FILE_REQUEST_TCP = 0x0001, //gfhuang
228 } // switch type 228 } // switch type
229 } // qq_get_recv_im_type_str 229 } // qq_get_recv_im_type_str
230 230
231 /*****************************************************************************/ 231 /*****************************************************************************/
232 // generate a md5 key using uid and session_key 232 // generate a md5 key using uid and session_key
233 static gchar *_gen_session_md5(gint uid, gchar * session_key) 233 gchar *_gen_session_md5(gint uid, gchar * session_key)
234 { 234 {
235 gchar *src, md5_str[QQ_KEY_LENGTH]; 235 gchar *src, md5_str[QQ_KEY_LENGTH];
236 guint8 *cursor; 236 guint8 *cursor;
237 // md5_state_t ctx; //gfhuang 237 // md5_state_t ctx; //gfhuang
238 GaimCipher *cipher; 238 GaimCipher *cipher;