diff libpurple/protocols/yahoo/yahoo.h @ 25063:860d8ed4f7a6

Check for session id (value for key 11) in the received IMs and Notifications against our session id. Disconnect in case of a mismatch.
author Sulabh Mahajan <sulabh@soc.pidgin.im>
date Wed, 02 Jul 2008 11:16:35 +0000
parents 048a53891afd
children c3c5e79b4ecc
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo.h	Wed Jul 02 07:22:58 2008 +0000
+++ b/libpurple/protocols/yahoo/yahoo.h	Wed Jul 02 11:16:35 2008 +0000
@@ -81,6 +81,9 @@
 #define YAHOOJP_CLIENT_VERSION_ID "524223"
 #define YAHOOJP_CLIENT_VERSION "7,0,1,1"
 
+/*Packet sources: yahoo server and p2p*/
+#define PKT_YAHOOSERVER 0
+#define PKT_P2P 1
 
 /* Index into attention types list. */
 #define YAHOO_BUZZ 0
@@ -121,7 +124,7 @@
 	int val_13;
 	guint input_event;
 	gint source;
-	int val_11;
+	int session_id;
 	gboolean connection_type;	/* 0: peer is server, 1: we are server*/
 };