KingAnt.net This space left blank intentionally. 
Oscar Protocol Documentation | Random Pidgin Files

Oscar Protocol Specification: Family 0x0013, Subtype 0x0003

unfinished

This rights information SNAC is sent by the server after you request it via a family 0x0013, subtype 0x0002 SNAC. It tells the client what rights it has to use family 0x0013. You will usually get your buddy list (subtype 0x0006) at the same time you get this, provided you requested it at the same time you sent the rights request SNAC. This, like many other SNACs, is made up of TLVs.

XXX: Max length of a screen name seems to be x0020 (might just be client-side)

XXX: Max length of a group seems to be x0030 (might just be client-side)

Thanks to Adam Fritzler for initially figuring out parts of this.

Source: Server

LengthDescription
2 bytesFamily (0x0013)
2 bytesSubtype (0x0003)
2 bytesFlags
4 bytesSnac Request ID (always 0x0000 0002, but it doesn't seem to be important)
X bytes TLVs:
LengthDescription
2 bytesType 0x0002 - Unknown
2 bytesLength L of the following
L bytesUnknown


LengthDescription
2 bytesType 0x0003 - Unknown
2 bytesLength L of the following
L bytesUnknown


LengthDescription
2 bytesType 0x0004 - Maximum number of each item
2 bytesLength L of the following
L bytesSets of 2 bytes, 1 set for each possible type of item. So the first 2 bytes in this TLV correspond to the number of buddies you can have (type 0x0000), the second 2 bytes correspond to then number of groups you can have (type 0x0001), etc. Normally AIM lets you have 200 buddies, 61 groups, 200 permits, 200 denies, 1 type 0x0004, and 1 type 0x0005. Normally ICQ lets you have 600 buddies, 51 groups, 128 permits, 128 denies, 1 type 0x0004, and 1 type 0x0005.


LengthDescription
2 bytesType 0x0005 - Unknown
2 bytesLength L of the following
L bytesUnknown


LengthDescription
2 bytesType 0x0006 - Maximum Size of An Item?
2 bytesLength L of the following
L bytesCurrently 2 bytes: 0x0061


All material Copyright © 2000-2014, All Rights Reserved
Linux is a registered trademark of Linus Torvalds.
AIM is a registered trademark of America Online, Inc.
ICQ is a registered trademark of ICQ Inc.
All other trademarks are property of their respective owners.