]> jfr.im git - solanum.git/commitdiff
Revert "[ci skip] remove useless bit in auth.h"
authorElizabeth Myers <redacted>
Thu, 10 Mar 2016 08:42:18 +0000 (02:42 -0600)
committerElizabeth Myers <redacted>
Thu, 10 Mar 2016 08:42:18 +0000 (02:42 -0600)
This reverts commit 4cc131fc4824db6e315be2509dfc046c7a359eb0.

authd/auth.h

index eca662a21f69b96b8f2a6d15bb6a352ebf019aab..8f47e909b0168282f2bf72cac0b97f5db03970f2 100644 (file)
@@ -33,22 +33,24 @@ typedef enum
        PROVIDER_RDNS = 0x1,
        PROVIDER_IDENT = 0x2,
        PROVIDER_BLACKLIST = 0x4,
        PROVIDER_RDNS = 0x1,
        PROVIDER_IDENT = 0x2,
        PROVIDER_BLACKLIST = 0x4,
+       PROVIDER_DUMMY = 0x8,
 } provider_t;
 
 struct auth_client
 {
 } provider_t;
 
 struct auth_client
 {
-       uint16_t cid;           /* Client ID */
+       uint16_t cid;                           /* Client ID */
 
 
-       char *l_ip;             /* Listener IP address */
-       uint16_t l_port;        /* Listener port */
+       char l_ip[HOSTIPLEN + 1];               /* Listener IP address */
+       uint16_t l_port;                        /* Listener port */
 
 
-       char *c_ip;             /* Client IP address */
-       uint16_t c_port;        /* Client port */
+       char c_ip[HOSTIPLEN + 1];               /* Client IP address */
+       uint16_t c_port;                        /* Client port */
 
 
-       char *hostname;         /* Used for DNS lookup */
-       char *username;         /* Used for ident lookup */
+       char hostname[IRCD_RES_HOSTLEN + 1];    /* Used for DNS lookup */
+       char username[USERLEN + 1];             /* Used for ident lookup */
 
 
-       unsigned int providers; /* Providers at work, 0 = none left */
+       unsigned int providers;                 /* Providers at work,
+                                                * none left when set to 0 */
 };
 
 typedef bool (*provider_init_t)(void);
 };
 
 typedef bool (*provider_init_t)(void);