X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fstruct_auth.h;h=0f21f5f2cf1ad99ecc25b71ab1fc7a922d381ba7;hb=4e79b9632a41b2c7d2fecb4e4514692f9cf7e7f9;hp=69a452af43f958a9a76fbc27dd38472b356c3194;hpb=1ed333a66df41a51352e13d3bb6c481f2c6617cf;p=NextIRCd.git diff --git a/src/struct_auth.h b/src/struct_auth.h index 69a452a..0f21f5f 100644 --- a/src/struct_auth.h +++ b/src/struct_auth.h @@ -17,22 +17,37 @@ #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 sent_ping : 1; + unsigned int have_pong : 1; + + struct Auth *prev, *next; }; #endif