/[svn]/ircd-hybrid-7.2/include/s_auth.h
ViewVC logotype

Diff of /ircd-hybrid-7.2/include/s_auth.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 991 by lusky, Sun Oct 2 21:05:51 2005 UTC revision 992 by michael, Mon Aug 17 19:19:16 2009 UTC
# Line 39  struct Client; Line 39  struct Client;
39    
40  struct AuthRequest  struct AuthRequest
41  {  {
42    dlink_node          dns_node;  /* auth_doing_dns_list */    dlink_node          node;      /* auth_doing_list */
   dlink_node          ident_node; /* auth_doing_ident_list */  
43    int                 flags;    int                 flags;
44    struct Client*      client;    /* pointer to client struct for request */    struct Client*      client;    /* pointer to client struct for request */
45    fde_t               fd;        /* file descriptor for auth queries */    fde_t               fd;        /* file descriptor for auth queries */
46    time_t              timeout;   /* time when query expires */    time_t              timeout;   /* time when query expires */
   unsigned int        ip6_int;  
47  };  };
48    
49  /*  /*
50   * flag values for AuthRequest   * flag values for AuthRequest
51   * NAMESPACE: AM_xxx - Authentication Module   * NAMESPACE: AM_xxx - Authentication Module
52   */   */
53  #define AM_DOING_AUTH        1  #define AM_DOING_AUTH        0x1
54  #define AM_DNS_PENDING       2  #define AM_DNS_PENDING       0x2
 #define CRIT_REGION          4  
55    
56  #define SetDNSPending(x)     ((x)->flags |= AM_DNS_PENDING)  #define SetDNSPending(x)     ((x)->flags |= AM_DNS_PENDING)
57  #define ClearDNSPending(x)   ((x)->flags &= ~AM_DNS_PENDING)  #define ClearDNSPending(x)   ((x)->flags &= ~AM_DNS_PENDING)
# Line 64  struct AuthRequest Line 61  struct AuthRequest
61  #define ClearAuth(x)         ((x)->flags &= ~AM_DOING_AUTH)  #define ClearAuth(x)         ((x)->flags &= ~AM_DOING_AUTH)
62  #define IsDoingAuth(x)       ((x)->flags &  AM_DOING_AUTH)  #define IsDoingAuth(x)       ((x)->flags &  AM_DOING_AUTH)
63    
 #define IsCrit(x)            ((x)->flags & CRIT_REGION)  
 #define SetCrit(x)           ((x)->flags |= CRIT_REGION)  
 #define ClearCrit(x)         ((x)->flags &= ~CRIT_REGION)  
   
64  extern struct Callback *auth_cb;  extern struct Callback *auth_cb;
65    
66    extern void init_auth(void);
67  extern void send_auth_query(struct AuthRequest *);  extern void send_auth_query(struct AuthRequest *);
68  extern void remove_auth_request(struct AuthRequest *);  extern void remove_auth_request(struct AuthRequest *);
69  extern struct AuthRequest *FindAuthClient(long);  extern void delete_auth(struct AuthRequest *);
70  extern void init_auth(void);  extern void release_auth_client(struct AuthRequest *);
 extern void delete_auth(struct Client *);  
 extern void release_auth_client(struct Client *);  
71    
72  #endif /* INCLUDED_s_auth_h */  #endif /* INCLUDED_s_auth_h */

Legend:
Removed from v.991  
changed lines
  Added in v.992

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.26