Mercurial > pidgin
diff libpurple/protocols/qq/buddy_opt.c @ 22544:217fffe3f46f
Patch from ccpaging to clean up some QQ stuff. I removed the now commented
out qq_crypt() instead of, well, comment it out.
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Mon, 24 Mar 2008 07:14:29 +0000 |
parents | dccfd999ffe7 |
children | 9a5d140400f1 |
line wrap: on
line diff
--- a/libpurple/protocols/qq/buddy_opt.c Fri Mar 21 21:11:07 2008 +0000 +++ b/libpurple/protocols/qq/buddy_opt.c Mon Mar 24 07:14:29 2008 +0000 @@ -267,7 +267,7 @@ data = g_newa(guint8, len); cursor = data; - if (qq_crypt(DECRYPT, buf, buf_len, qd->session_key, data, &len)) { + if (qq_decrypt(buf, buf_len, qd->session_key, data, &len)) { read_packet_b(data, &cursor, len, &reply); if (reply != QQ_ADD_BUDDY_AUTH_REPLY_OK) { purple_debug(PURPLE_DEBUG_WARNING, "QQ", "Add buddy with auth request failed\n"); @@ -297,7 +297,7 @@ len = buf_len; data = g_newa(guint8, len); - if (qq_crypt(DECRYPT, buf, buf_len, qd->session_key, data, &len)) { + if (qq_decrypt(buf, buf_len, qd->session_key, data, &len)) { cursor = data; read_packet_b(data, &cursor, len, &reply); if (reply != QQ_REMOVE_BUDDY_REPLY_OK) { @@ -326,7 +326,7 @@ len = buf_len; data = g_newa(guint8, len); - if (qq_crypt(DECRYPT, buf, buf_len, qd->session_key, data, &len)) { + if (qq_decrypt(buf, buf_len, qd->session_key, data, &len)) { cursor = data; read_packet_b(data, &cursor, len, &reply); if (reply != QQ_REMOVE_SELF_REPLY_OK) @@ -381,7 +381,7 @@ data = g_newa(guint8, len); - if (qq_crypt(DECRYPT, buf, buf_len, qd->session_key, data, &len)) { + if (qq_decrypt(buf, buf_len, qd->session_key, data, &len)) { if (NULL == (segments = split_data(data, len, "\x1f", 2))) return; uid = segments[0];