changeset 3213:7ed9fa994055

[gaim-migrate @ 3230] More stuff from Kingant committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sun, 05 May 2002 19:07:05 +0000
parents 56746b0868db
children f1ac8b51ec6b
files src/protocols/oscar/aim.h src/protocols/oscar/auth.c src/protocols/oscar/buddylist.c src/protocols/oscar/info.c
diffstat 4 files changed, 17 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/aim.h	Sun May 05 19:02:08 2002 +0000
+++ b/src/protocols/oscar/aim.h	Sun May 05 19:07:05 2002 +0000
@@ -953,12 +953,12 @@
 
 
 struct aim_icbmparameters {
-	unsigned short maxchan;
-	unsigned long flags; /* AIM_IMPARAM_FLAG_ */
-	unsigned short maxmsglen; /* message size that you will accept */
-	unsigned short maxsenderwarn; /* this and below are *10 (999=99.9%) */
-	unsigned short maxrecverwarn;
-	unsigned long minmsginterval; /* in milliseconds? */
+	fu16_t maxchan;
+	fu32_t flags; /* AIM_IMPARAM_FLAG_ */
+	fu16_t maxmsglen; /* message size that you will accept */
+	fu16_t maxsenderwarn; /* this and below are *10 (999=99.9%) */
+	fu16_t maxrecverwarn;
+	fu32_t minmsginterval; /* in milliseconds? */
 };
 
 faim_export int aim_reqicbmparams(aim_session_t *sess);
--- a/src/protocols/oscar/auth.c	Sun May 05 19:02:08 2002 +0000
+++ b/src/protocols/oscar/auth.c	Sun May 05 19:07:05 2002 +0000
@@ -290,6 +290,10 @@
 	aim_encode_password_md5(password, key, digest);
 	aim_addtlvtochain_raw(&tl, 0x0025, 16, digest);
 
+	/*
+	 * Newer versions of winaim have an empty type x004c TLV here.
+	 */
+
 	if (ci->clientstring)
 		aim_addtlvtochain_raw(&tl, 0x0003, strlen(ci->clientstring), ci->clientstring);
 	aim_addtlvtochain16(&tl, 0x0016, (fu16_t)ci->clientid);
@@ -304,7 +308,6 @@
 	 * If set, old-fashioned buddy lists will not work. You will need
 	 * to use SSI.
 	 */
-	
 	aim_addtlvtochain8(&tl, 0x004a, 0x01);
 
 	aim_writetlvchain(&fr->data, &tl);
--- a/src/protocols/oscar/buddylist.c	Sun May 05 19:02:08 2002 +0000
+++ b/src/protocols/oscar/buddylist.c	Sun May 05 19:07:05 2002 +0000
@@ -53,6 +53,12 @@
 	if (aim_gettlv(tlvlist, 0x0002, 1))
 		maxwatchers = aim_gettlv16(tlvlist, 0x0002, 1);
 
+	/*
+	 * TLV type 0x0003: Unknown.
+	 *
+	 * ICQ only?
+	 */
+
 	if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype)))
 		ret = userfunc(sess, rx, maxbuddies, maxwatchers);
 
--- a/src/protocols/oscar/info.c	Sun May 05 19:02:08 2002 +0000
+++ b/src/protocols/oscar/info.c	Sun May 05 19:07:05 2002 +0000
@@ -579,6 +579,7 @@
  *   t(0001)  - short containing max profile length (value = 1024)
  *   t(0002)  - short - unknown (value = 16) [max MIME type length?]
  *   t(0003)  - short - unknown (value = 10)
+ *   t(0004)  - short - unknown (value = 2048) [ICQ only?]
  */
 static int rights(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs)
 {