Mercurial > pidgin
comparison libfaim/aim_login.c @ 1247:f50146ce818e
[gaim-migrate @ 1257]
more libfaim stuff
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 13 Dec 2000 00:51:37 +0000 |
parents | 2ac6ccb94229 |
children | 3e44de27622d |
comparison
equal
deleted
inserted
replaced
1246:42ca87108cd1 | 1247:f50146ce818e |
---|---|
296 int ret = 1; | 296 int ret = 1; |
297 rxcallback_t userfunc = NULL; | 297 rxcallback_t userfunc = NULL; |
298 char *sn = NULL, *bosip = NULL, *errurl = NULL, *email = NULL; | 298 char *sn = NULL, *bosip = NULL, *errurl = NULL, *email = NULL; |
299 unsigned char *cookie = NULL; | 299 unsigned char *cookie = NULL; |
300 int errorcode = 0, regstatus = 0; | 300 int errorcode = 0, regstatus = 0; |
301 int latestbuild = 0, latestbetabuild = 0; | |
302 char *latestrelease = NULL, *latestbeta = NULL; | |
303 char *latestreleaseurl = NULL, *latestbetaurl = NULL; | |
304 char *latestreleaseinfo = NULL, *latestbetainfo = NULL; | |
301 | 305 |
302 /* | 306 /* |
303 * Read block of TLVs. All further data is derived | 307 * Read block of TLVs. All further data is derived |
304 * from what is parsed here. | 308 * from what is parsed here. |
305 * | 309 * |
359 * Not available for ICQ logins. | 363 * Not available for ICQ logins. |
360 */ | 364 */ |
361 if (aim_gettlv(tlvlist, 0x0013, 1)) | 365 if (aim_gettlv(tlvlist, 0x0013, 1)) |
362 regstatus = aim_gettlv16(tlvlist, 0x0013, 1); | 366 regstatus = aim_gettlv16(tlvlist, 0x0013, 1); |
363 | 367 |
368 if (aim_gettlv(tlvlist, 0x0040, 1)) | |
369 latestbetabuild = aim_gettlv32(tlvlist, 0x0040, 1); | |
370 if (aim_gettlv(tlvlist, 0x0041, 1)) | |
371 latestbetaurl = aim_gettlv_str(tlvlist, 0x0041, 1); | |
372 if (aim_gettlv(tlvlist, 0x0042, 1)) | |
373 latestbetainfo = aim_gettlv_str(tlvlist, 0x0042, 1); | |
374 if (aim_gettlv(tlvlist, 0x0043, 1)) | |
375 latestbeta = aim_gettlv_str(tlvlist, 0x0043, 1); | |
376 if (aim_gettlv(tlvlist, 0x0048, 1)) | |
377 ; /* no idea what this is */ | |
378 | |
379 if (aim_gettlv(tlvlist, 0x0044, 1)) | |
380 latestbuild = aim_gettlv32(tlvlist, 0x0044, 1); | |
381 if (aim_gettlv(tlvlist, 0x0045, 1)) | |
382 latestreleaseurl = aim_gettlv_str(tlvlist, 0x0045, 1); | |
383 if (aim_gettlv(tlvlist, 0x0046, 1)) | |
384 latestreleaseinfo = aim_gettlv_str(tlvlist, 0x0046, 1); | |
385 if (aim_gettlv(tlvlist, 0x0047, 1)) | |
386 latestrelease = aim_gettlv_str(tlvlist, 0x0047, 1); | |
387 if (aim_gettlv(tlvlist, 0x0049, 1)) | |
388 ; /* no idea what this is */ | |
389 | |
364 | 390 |
365 if ((userfunc = aim_callhandler(command->conn, 0x0017, 0x0003))) | 391 if ((userfunc = aim_callhandler(command->conn, 0x0017, 0x0003))) |
366 ret = userfunc(sess, command, sn, errorcode, errurl, regstatus, email, bosip, cookie); | 392 ret = userfunc(sess, command, sn, errorcode, errurl, regstatus, email, bosip, cookie, latestrelease, latestbuild, latestreleaseurl, latestreleaseinfo, latestbeta, latestbetabuild, latestbetaurl, latestbetainfo); |
367 | 393 |
368 | 394 |
369 if (sn) | 395 if (sn) |
370 free(sn); | 396 free(sn); |
371 if (bosip) | 397 if (bosip) |
374 free(errurl); | 400 free(errurl); |
375 if (email) | 401 if (email) |
376 free(email); | 402 free(email); |
377 if (cookie) | 403 if (cookie) |
378 free(cookie); | 404 free(cookie); |
405 if (latestrelease) | |
406 free(latestrelease); | |
407 if (latestreleaseurl) | |
408 free(latestreleaseurl); | |
409 if (latestbeta) | |
410 free(latestbeta); | |
411 if (latestbetaurl) | |
412 free(latestbetaurl); | |
413 if (latestreleaseinfo) | |
414 free(latestreleaseinfo); | |
415 if (latestbetainfo) | |
416 free(latestbetainfo); | |
417 | |
379 aim_freetlvchain(&tlvlist); | 418 aim_freetlvchain(&tlvlist); |
380 | 419 |
381 return ret; | 420 return ret; |
382 } | 421 } |
383 | 422 |