ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/auth.h
(Generate patch)

Comparing:
ircd-hybrid/include/s_auth.h (file contents), Revision 33 by knight, Sun Oct 2 20:50:00 2005 UTC vs.
ircd-hybrid-7.3/include/s_auth.h (file contents), Revision 1029 by michael, Sun Nov 8 13:10:50 2009 UTC

# Line 28 | Line 28
28   #include "irc_res.h"
29   #include "hook.h"
30  
31 /* How many auth allocations to allocate in a block. I'm guessing that
32 * a good number here is 64, because these are temporary and don't live
33 * as long as clients do.
34 *     -- adrian
35 */
36 #define AUTH_BLOCK_SIZE 64
31  
32   struct Client;
33  
34   struct AuthRequest
35   {
36 <  dlink_node          dns_node;  /* auth_doing_dns_list */
43 <  dlink_node          ident_node; /* auth_doing_ident_list */
36 >  dlink_node          node;      /* auth_doing_list */
37    int                 flags;
38    struct Client*      client;    /* pointer to client struct for request */
39    fde_t               fd;        /* file descriptor for auth queries */
40    time_t              timeout;   /* time when query expires */
48  unsigned int        ip6_int;
41   };
42  
43   /*
44   * flag values for AuthRequest
45   * NAMESPACE: AM_xxx - Authentication Module
46   */
47 < #define AM_DOING_AUTH        1
48 < #define AM_DNS_PENDING       2
57 < #define CRIT_REGION          4
47 > #define AM_DOING_AUTH        0x1
48 > #define AM_DNS_PENDING       0x2
49  
50   #define SetDNSPending(x)     ((x)->flags |= AM_DNS_PENDING)
51   #define ClearDNSPending(x)   ((x)->flags &= ~AM_DNS_PENDING)
# Line 64 | Line 55 | struct AuthRequest
55   #define ClearAuth(x)         ((x)->flags &= ~AM_DOING_AUTH)
56   #define IsDoingAuth(x)       ((x)->flags &  AM_DOING_AUTH)
57  
67 #define IsCrit(x)            ((x)->flags & CRIT_REGION)
68 #define SetCrit(x)           ((x)->flags |= CRIT_REGION)
69 #define ClearCrit(x)         ((x)->flags &= ~CRIT_REGION)
70
58   extern struct Callback *auth_cb;
59  
60 + extern void init_auth(void);
61   extern void send_auth_query(struct AuthRequest *);
62   extern void remove_auth_request(struct AuthRequest *);
63 < extern struct AuthRequest *FindAuthClient(long);
64 < extern void init_auth(void);
77 < extern void delete_auth(struct Client *);
78 < extern void release_auth_client(struct Client *);
63 > extern void delete_auth(struct AuthRequest *);
64 > extern void release_auth_client(struct AuthRequest *);
65  
66   #endif /* INCLUDED_s_auth_h */

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)