Mercurial > pidgin
comparison libpurple/protocols/qq/send_core.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 | 0c2dd59f91d1 |
children | 9a5d140400f1 |
comparison
equal
deleted
inserted
replaced
22543:06f195789c3e | 22544:217fffe3f46f |
---|---|
130 encrypted_len = len + 16; /* at most 16 bytes more */ | 130 encrypted_len = len + 16; /* at most 16 bytes more */ |
131 encrypted_data = g_newa(guint8, encrypted_len); | 131 encrypted_data = g_newa(guint8, encrypted_len); |
132 cursor = buf; | 132 cursor = buf; |
133 bytes_written = 0; | 133 bytes_written = 0; |
134 | 134 |
135 qq_crypt(ENCRYPT, data, len, qd->session_key, encrypted_data, &encrypted_len); | 135 qq_encrypt(data, len, qd->session_key, encrypted_data, &encrypted_len); |
136 | 136 |
137 seq_ret = seq; | 137 seq_ret = seq; |
138 if (_create_packet_head_seq(buf, &cursor, gc, cmd, is_auto_seq, &seq_ret) >= 0) { | 138 if (_create_packet_head_seq(buf, &cursor, gc, cmd, is_auto_seq, &seq_ret) >= 0) { |
139 bytes_expected = 4 + encrypted_len + 1; | 139 bytes_expected = 4 + encrypted_len + 1; |
140 bytes_written += create_packet_dw(buf, &cursor, (guint32) qd->uid); | 140 bytes_written += create_packet_dw(buf, &cursor, (guint32) qd->uid); |