X-Git-Url: http://git.pk910.de/?p=NextIRCd.git;a=blobdiff_plain;f=src%2Fstruct_auth.h;fp=src%2Fstruct_auth.h;h=335917e39005d77268c14a8bd0b8e1424d288a9f;hp=69a452af43f958a9a76fbc27dd38472b356c3194;hb=fc3df376babe61fd8b725fb8c48c189eaebeec50;hpb=59ddec51d649f0af9b91d2aab710258d5b97a596 diff --git a/src/struct_auth.h b/src/struct_auth.h index 69a452a..335917e 100644 --- a/src/struct_auth.h +++ b/src/struct_auth.h @@ -17,22 +17,36 @@ #ifndef _struct_auth_h #define _struct_auth_h +#include "struct_user.h" +#include + +#define PASSLEN 50 + +struct IODNSQuery; struct Auth { struct Connection *conn; - char *nick; - char *ident; - char *realname; - char *passwd; - - unsigned int ping_number; + char nick[NICKLEN+1]; + char ident[IDENTLEN+1]; + char realname[REALLEN+1]; + char host[HOSTLEN+1]; + char passwd[PASSLEN+1]; + + unsigned int ping_probe; + time_t startup_time; + + struct IODNSQuery *dnslookup; unsigned int server : 1; unsigned int have_nick : 1; unsigned int have_user : 1; unsigned int have_pass : 1; + unsigned int have_dnsresolv : 1; + unsigned int have_pong : 1; + + struct Auth *prev, *next; }; #endif