added some files
[NextIRCd.git] / src / struct_auth.h
index 69a452af43f958a9a76fbc27dd38472b356c3194..335917e39005d77268c14a8bd0b8e1424d288a9f 100644 (file)
 
 #ifndef _struct_auth_h
 #define _struct_auth_h
+#include "struct_user.h"
+#include <time.h>
+
+#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