]> andersk Git - libfaim.git/blobdiff - src/auth.c
- Wed May 9 15:21:51 PDT 2001
[libfaim.git] / src / auth.c
index 629d7553ef9703fd421f04278fe63b7a397f869d..6db41c4a77ad5f5723dbce92ac37f6efa07e814d 100644 (file)
@@ -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);
This page took 0.036889 seconds and 4 git commands to generate.