Mercurial > pidgin
comparison src/protocols/oscar/auth.c @ 7313:be7c1468c6a7
[gaim-migrate @ 7897]
I thought I commited some of this a while ago... oh well. None of it
is really important at all.
I uncommented the available message stuff, it might work for some
people (Sam), but doesn't work for me. I don't want to have to
comment this out again before 0.72... so someone get this working (Sam).
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 22 Oct 2003 03:32:21 +0000 |
parents | ad243bc63184 |
children | ea2d07ad05a9 |
comparison
equal
deleted
inserted
replaced
7312:b8ce6e194cff | 7313:be7c1468c6a7 |
---|---|
85 return 0; | 85 return 0; |
86 } | 86 } |
87 #endif | 87 #endif |
88 | 88 |
89 /* | 89 /* |
90 * Normally the FLAP version is sent as the first few bytes of the cookie, | 90 * The FLAP version is sent by itself at the beginning of authorization |
91 * meaning you generally never call this. | 91 * connections. The FLAP version is also sent before the cookie when connecting |
92 * | 92 * for other services (BOS, chatnav, chat, etc.). |
93 * But there are times when something might want it seperate. Specifically, | |
94 * libfaim sends this internally when doing SNAC login. | |
95 * | |
96 */ | 93 */ |
97 faim_export int aim_sendflapver(aim_session_t *sess, aim_conn_t *conn) | 94 faim_export int aim_sendflapver(aim_session_t *sess, aim_conn_t *conn) |
98 { | 95 { |
99 aim_frame_t *fr; | 96 aim_frame_t *fr; |
100 | 97 |
183 } | 180 } |
184 | 181 |
185 /* | 182 /* |
186 * Subtype 0x0002 | 183 * Subtype 0x0002 |
187 * | 184 * |
188 * send_login(int socket, char *sn, char *password) | |
189 * | |
190 * This is the initial login request packet. | 185 * This is the initial login request packet. |
191 * | 186 * |
192 * NOTE!! If you want/need to make use of the aim_sendmemblock() function, | 187 * NOTE!! If you want/need to make use of the aim_sendmemblock() function, |
193 * then the client information you send here must exactly match the | 188 * then the client information you send here must exactly match the |
194 * executable that you're pulling the data from. | 189 * executable that you're pulling the data from. |
275 * It can be either an error or a success, depending on the | 270 * It can be either an error or a success, depending on the |
276 * precense of certain TLVs. | 271 * precense of certain TLVs. |
277 * | 272 * |
278 * The client should check the value passed as errorcode. If | 273 * The client should check the value passed as errorcode. If |
279 * its nonzero, there was an error. | 274 * its nonzero, there was an error. |
280 * | |
281 */ | 275 */ |
282 static int parse(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) | 276 static int parse(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) |
283 { | 277 { |
284 aim_tlvlist_t *tlvlist; | 278 aim_tlvlist_t *tlvlist; |
285 aim_rxcallback_t userfunc; | 279 aim_rxcallback_t userfunc; |
467 aim_tlvlist_t *tl = NULL; | 461 aim_tlvlist_t *tl = NULL; |
468 | 462 |
469 if (!sess || !conn || !sn) | 463 if (!sess || !conn || !sn) |
470 return -EINVAL; | 464 return -EINVAL; |
471 | 465 |
472 if ((sn[0] >= '0') && (sn[0] <= '9')) | 466 if (isdigit(sn[0])) |
473 return goddamnicq(sess, conn, sn); | 467 return goddamnicq(sess, conn, sn); |
474 | 468 |
475 aim_sendflapver(sess, conn); | 469 aim_sendflapver(sess, conn); |
476 | 470 |
477 if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10+2+2+strlen(sn) /*+8*/ ))) | 471 if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10+2+2+strlen(sn) /*+8*/ ))) |