comparison src/protocols/oscar/aim.h @ 4293:79d871c11eb9

[gaim-migrate @ 4546] This changes to authorization cookie from a fixed length of 0x0100 bytes to a dynamic length. The cookie AOL sends is always 0x0100 bytes, but there was a bug report saying, "I found that Gaim doesn't work with iserverd because it uses hardcoded authorization cookie length. Why don't you use TLV length value as auth cookie length ? ICQ2k+ and winaim works without problems with 64 byte cookies... AOL can just change cookie len and gaim will became useless..." I don't know about useless... but he does have a point. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 11 Jan 2003 09:19:39 +0000
parents ff0642fab1d5
children 7c9f3d0fe8b2
comparison
equal deleted inserted replaced
4292:78a3d2caf84c 4293:79d871c11eb9
110 * dynamic, but I have yet to see due cause to 110 * dynamic, but I have yet to see due cause to
111 * define it dynamically here. Maybe later. 111 * define it dynamically here. Maybe later.
112 * 112 *
113 */ 113 */
114 #define MAXCHATMSGLEN 512 114 #define MAXCHATMSGLEN 512
115
116 /*
117 * Standard size of an AIM authorization cookie
118 */
119 #define AIM_COOKIELEN 0x100
120 115
121 #define AIM_MD5_STRING "AOL Instant Messenger (SM)" 116 #define AIM_MD5_STRING "AOL Instant Messenger (SM)"
122 117
123 /* 118 /*
124 * Client info. Filled in by the client and passed in to 119 * Client info. Filled in by the client and passed in to
593 fu16_t errorcode; 588 fu16_t errorcode;
594 char *errorurl; 589 char *errorurl;
595 fu16_t regstatus; 590 fu16_t regstatus;
596 char *email; 591 char *email;
597 char *bosip; 592 char *bosip;
593 fu16_t cookielen;
598 fu8_t *cookie; 594 fu8_t *cookie;
599 char *chpassurl; 595 char *chpassurl;
600 struct aim_clientrelease latestrelease; 596 struct aim_clientrelease latestrelease;
601 struct aim_clientrelease latestbeta; 597 struct aim_clientrelease latestbeta;
602 }; 598 };
603 599
604 /* Callback data for redirect. */ 600 /* Callback data for redirect. */
605 struct aim_redirect_data { 601 struct aim_redirect_data {
606 fu16_t group; 602 fu16_t group;
607 const char *ip; 603 const char *ip;
604 fu16_t cookielen;
608 const fu8_t *cookie; 605 const fu8_t *cookie;
609 struct { /* group == AIM_CONN_TYPE_CHAT */ 606 struct { /* group == AIM_CONN_TYPE_CHAT */
610 fu16_t exchange; 607 fu16_t exchange;
611 const char *room; 608 const char *room;
612 fu16_t instance; 609 fu16_t instance;
1052 faim_export int aim_reqicbmparams(aim_session_t *sess); 1049 faim_export int aim_reqicbmparams(aim_session_t *sess);
1053 faim_export int aim_seticbmparam(aim_session_t *sess, struct aim_icbmparameters *params); 1050 faim_export int aim_seticbmparam(aim_session_t *sess, struct aim_icbmparameters *params);
1054 1051
1055 1052
1056 /* auth.c */ 1053 /* auth.c */
1057 faim_export int aim_sendcookie(aim_session_t *, aim_conn_t *, const fu8_t *); 1054 faim_export int aim_sendcookie(aim_session_t *, aim_conn_t *, const fu16_t length, const fu8_t *);
1058 1055
1059 faim_export int aim_admin_changepasswd(aim_session_t *, aim_conn_t *, const char *newpw, const char *curpw); 1056 faim_export int aim_admin_changepasswd(aim_session_t *, aim_conn_t *, const char *newpw, const char *curpw);
1060 faim_export int aim_admin_reqconfirm(aim_session_t *sess, aim_conn_t *conn); 1057 faim_export int aim_admin_reqconfirm(aim_session_t *sess, aim_conn_t *conn);
1061 faim_export int aim_admin_getinfo(aim_session_t *sess, aim_conn_t *conn, fu16_t info); 1058 faim_export int aim_admin_getinfo(aim_session_t *sess, aim_conn_t *conn, fu16_t info);
1062 faim_export int aim_admin_setemail(aim_session_t *sess, aim_conn_t *conn, const char *newemail); 1059 faim_export int aim_admin_setemail(aim_session_t *sess, aim_conn_t *conn, const char *newemail);