crypted = ircd_crypt(to_match, passwd);
if(!crypted)
return 0;
- Debug((DEBUG_NOTICE, "WebIRC: Passwort check: %s = %s", crypted, passwd));
res = strcmp(crypted, passwd);
MyFree(crypted);
return 0 == res;
unsigned int matched = 0;
if(!GlobalWebIRCConf) {
- Debug((DEBUG_NOTICE, "WebIRC: no global webirc conf"));
return NULL;
}
/* it's a sorted list an passwords are stored first! */
if(inode->type != WEBIRC_PASS) break;
- Debug((DEBUG_NOTICE, "WebIRC: pass: %s",inode->content));
if(webirc_pwmatch(passwd, inode->content)) {
matched = 1;
break;
/* go to next entry */
inode = inode->next;
- if(!matched)
- Debug((DEBUG_NOTICE, "WebIRC: Password missmatch"));
-
/* check for matching real-host/ip */
if(matched) {
matched = 0;
inode = inode->next;
} while(inode != iter->list);
- if(!matched)
- Debug((DEBUG_NOTICE, "WebIRC: host missmatch"));
}
/* check for matching spoofed host/ip */
inode = inode->next;
} while(inode != iter->list);
- if(!matched)
- Debug((DEBUG_NOTICE, "WebIRC: spoof missmatch"));
}
if(matched) return iter;