diff libpurple/protocols/qq/qq.h @ 24066:dbc7a9742f8d

2008.09.26 - ccpaging <ccpaging(at)gmail.com> * Added 'Request/Add/Remove Buddy' functions
author SHiNE CsyFeK <csyfek@gmail.com>
date Wed, 22 Oct 2008 14:35:05 +0000
parents bdfcfd71449c
children 87e61a85f5dd
line wrap: on
line diff
--- a/libpurple/protocols/qq/qq.h	Wed Oct 22 14:33:20 2008 +0000
+++ b/libpurple/protocols/qq/qq.h	Wed Oct 22 14:35:05 2008 +0000
@@ -54,13 +54,16 @@
 };
 
 struct _qq_login_data {
-	guint8 init_key[QQ_KEY_LENGTH];			/* first encrypt key generated by client */
-	guint8 *token;		/* get from server*/
+	guint8 random_key[QQ_KEY_LENGTH];			/* first encrypt key generated by client */
+	guint8 *token;				/* get from server */
 	guint8 token_len;
-	guint8 *token_ex;		/* get from server*/
+	guint8 *token_ex;			/* get from server */
 	guint16 token_ex_len;
-	guint8 captcha_key[QQ_KEY_LENGTH];	/* encrypt key used in captcha generated by client */
-	guint8 pwd_twice_md5[QQ_KEY_LENGTH];			/* password in md5 (or md5' md5) */
+	guint8 pwd_2nd_md5[QQ_KEY_LENGTH];			/* password in md5 (or md5' md5) */
+	guint8 pwd_4th_md5[QQ_KEY_LENGTH];
+	guint8 *login_token;
+	guint16 login_token_len;
+	guint8 login_key[QQ_KEY_LENGTH];
 };
 
 struct _qq_redirect_data {
@@ -101,7 +104,7 @@
 	guint8 status;
 	guint8 ext_flag;
 	guint8 comm_flag;	/* details in qq_buddy_list.c */
-	guint16 client_version;
+	guint16 client_tag;
 	guint8 onlineTime;
 	guint16 level;
 	guint16 timeRemainder;
@@ -140,8 +143,8 @@
 	GList *servers;
 	gchar *curr_server;		/* point to servers->data, do not free*/
 
-	guint16 client_version;
-	gboolean is_above_2007;
+	guint16 client_tag;
+	gint client_version;
 
 	struct in_addr redirect_ip;
 	guint16 redirect_port;
@@ -159,16 +162,16 @@
 	GList *transactions;	/* check ack packet and resend */
 
 	guint32 uid;			/* QQ number */
-	
+
 	qq_login_data ld;
 	qq_captcha_data captcha;
-	
+
 	guint8 session_key[QQ_KEY_LENGTH];		/* later use this as key in this session */
 	guint8 session_md5[QQ_KEY_LENGTH];		/* concatenate my uid with session_key and md5 it */
 
 	guint16 send_seq;		/* send sequence number */
 	guint8 login_mode;		/* online of invisible */
-	gboolean is_login;		/* used by qq-add_buddy */
+	gboolean is_login;		/* used by qq_add_buddy */
 
 	PurpleXfer *xfer;			/* file transfer handler */