X-Git-Url: http://andersk.mit.edu/gitweb/libfaim.git/blobdiff_plain/9f1a40132a2c6642e3544205c31c091051127ae0..83ae98f8f4a187c01e91c2533ba3e286c165d563:/src/auth.c diff --git a/src/auth.c b/src/auth.c index 629d755..6db41c4 100644 --- a/src/auth.c +++ b/src/auth.c @@ -43,7 +43,7 @@ static int parse(struct aim_session_t *sess, aim_module_t *mod, struct command_r { struct aim_tlvlist_t *tlvlist; int ret = 0; - rxcallback_t userfunc; + aim_rxcallback_t userfunc; char *sn = NULL, *bosip = NULL, *errurl = NULL, *email = NULL; unsigned char *cookie = NULL; int errorcode = 0, regstatus = 0; @@ -184,7 +184,7 @@ static int keyparse(struct aim_session_t *sess, aim_module_t *mod, struct comman unsigned char *key; int keylen; int ret = 1; - rxcallback_t userfunc; + aim_rxcallback_t userfunc; keylen = aimutil_get16(data); if (!(key = malloc(keylen+1))) @@ -203,14 +203,7 @@ static int keyparse(struct aim_session_t *sess, aim_module_t *mod, struct comman static int snachandler(struct aim_session_t *sess, aim_module_t *mod, struct command_rx_struct *rx, aim_modsnac_t *snac, unsigned char *data, int datalen) { - faimdprintf(sess, 0, "%s: snachandler: got %x/%x\n", mod->name, snac->family, snac->subtype); - - if (snac->family != mod->family) - return 0; - - if (snac->subtype == 0x0001) - ; - else if (snac->subtype == 0x0003) + if (snac->subtype == 0x0003) return parse(sess, mod, rx, snac, data, datalen); else if (snac->subtype == 0x0007) return keyparse(sess, mod, rx, snac, data, datalen);