ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/conf.h
Revision: 992
Committed: Mon Aug 17 19:19:16 2009 UTC (14 years, 8 months ago) by michael
Content type: text/x-chdr
Original Path: ircd-hybrid-7.2/include/s_conf.h
File size: 19137 byte(s)
Log Message:
- fix possible auth/dns related memleaks

File Contents

# User Rev Content
1 adx 30 /*
2     * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3     * s_conf.h: A header for the configuration functions.
4     *
5     * Copyright (C) 2005 by the past and present ircd coders, and others.
6     *
7     * This program is free software; you can redistribute it and/or modify
8     * it under the terms of the GNU General Public License as published by
9     * the Free Software Foundation; either version 2 of the License, or
10     * (at your option) any later version.
11     *
12     * This program is distributed in the hope that it will be useful,
13     * but WITHOUT ANY WARRANTY; without even the implied warranty of
14     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15     * GNU General Public License for more details.
16     *
17     * You should have received a copy of the GNU General Public License
18     * along with this program; if not, write to the Free Software
19     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20     * USA
21     *
22 knight 31 * $Id$
23 adx 30 */
24    
25     #ifndef INCLUDED_s_conf_h
26     #define INCLUDED_s_conf_h
27 michael 912 #include "config.h"
28 adx 30 #ifdef HAVE_LIBCRYPTO
29     #include <openssl/rsa.h>
30     #endif
31     #include "fileio.h" /* FBFILE */
32     #include "ircd_defs.h"
33     #include "motd.h" /* MessageFile */
34     #include "client.h"
35     #include "hook.h"
36     #include "pcre.h"
37    
38 michael 967
39     #define CONF_SERVER_INFO_TLS_VERSION_SSLV3 0x1
40     #define CONF_SERVER_INFO_TLS_VERSION_TLSV1 0x2
41    
42 adx 30 struct Client;
43     struct DNSReply;
44     struct hostent;
45    
46     extern struct Callback *client_check_cb;
47    
48 michael 967 struct conf_parser_context
49     {
50     unsigned int boot;
51     unsigned int pass;
52     FBFILE *conf_file;
53     };
54    
55     extern struct conf_parser_context conf_parser_ctx;
56    
57 michael 56 typedef enum
58     {
59 adx 30 CONF_TYPE,
60     CLASS_TYPE,
61     OPER_TYPE,
62     CLIENT_TYPE,
63     SERVER_TYPE,
64     HUB_TYPE,
65     LEAF_TYPE,
66     KLINE_TYPE,
67     DLINE_TYPE,
68     EXEMPTDLINE_TYPE,
69     CLUSTER_TYPE,
70     RKLINE_TYPE,
71     RXLINE_TYPE,
72     XLINE_TYPE,
73     ULINE_TYPE,
74     GLINE_TYPE,
75     CRESV_TYPE,
76     NRESV_TYPE,
77     GDENY_TYPE
78     } ConfType;
79    
80 michael 593 struct split_nuh_item
81     {
82     dlink_node node;
83    
84     char *nuhmask;
85     char *nickptr;
86     char *userptr;
87     char *hostptr;
88    
89     size_t nicksize;
90     size_t usersize;
91     size_t hostsize;
92     };
93    
94 adx 30 struct ConfItem
95     {
96     char *name; /* Primary key */
97     pcre *regexpname;
98     dlink_node node; /* link into known ConfItems of this type */
99     unsigned int flags;
100     ConfType type;
101     };
102    
103     /*
104     * MatchItem - used for XLINE and ULINE types
105     */
106     struct MatchItem
107     {
108     char *user; /* Used for ULINE only */
109     char *host; /* Used for ULINE only */
110     char *reason;
111     char *oper_reason;
112     int action; /* used for uline */
113     int count; /* How many times this matchitem has been matched */
114     int ref_count; /* How many times is this matchitem in use */
115     int illegal; /* Should it be deleted when possible? */
116     time_t hold; /* Hold action until this time (calendar time) */
117     };
118    
119     struct AccessItem
120     {
121     dlink_node node;
122 michael 992 unsigned int dns_failed;
123     unsigned int dns_pending;
124 adx 30 unsigned int status; /* If CONF_ILLEGAL, delete when no clients */
125     unsigned int flags;
126 michael 56 unsigned int modes;
127 adx 30 int clients; /* Number of *LOCAL* clients using this */
128     struct irc_ssaddr my_ipnum; /* ip to bind to for outgoing connect */
129     struct irc_ssaddr ipnum; /* ip to connect to */
130     char * host; /* host part of user@host */
131     char * passwd;
132     char * spasswd; /* Password to send. */
133     char * reason;
134     char * oper_reason;
135     char * user; /* user part of user@host */
136     int port;
137     char * fakename; /* Mask name */
138     time_t hold; /* Hold action until this time (calendar time) */
139     struct ConfItem *class_ptr; /* Class of connection */
140     int aftype;
141     #ifdef HAVE_LIBCRYPTO
142     char * rsa_public_key_file;
143     RSA * rsa_public_key;
144     struct EncCapability *cipher_preference;
145     #endif
146     pcre *regexuser;
147     pcre *regexhost;
148     };
149    
150     struct ClassItem
151     {
152 michael 950 unsigned int max_sendq;
153 adx 30 int con_freq;
154     int ping_freq;
155     int ping_warning;
156     int max_total;
157     int max_local;
158     int max_global;
159     int max_ident;
160     int max_perip;
161     int curr_user_count;
162     int cidr_bitlen_ipv4;
163     int cidr_bitlen_ipv6;
164     int number_per_cidr;
165     dlink_list list_ipv4; /* base of per cidr ipv4 client link list */
166     dlink_list list_ipv6; /* base of per cidr ipv6 client link list */
167 michael 671 int active;
168 adx 30 };
169    
170     struct CidrItem
171     {
172     struct irc_ssaddr mask;
173     int number_on_this_cidr;
174     dlink_node node;
175     };
176    
177     #define ConFreq(x) ((x)->con_freq)
178     #define PingFreq(x) ((x)->ping_freq)
179     #define PingWarning(x) ((x)->ping_warning)
180     #define MaxTotal(x) ((x)->max_total)
181     #define MaxGlobal(x) ((x)->max_global)
182     #define MaxLocal(x) ((x)->max_local)
183     #define MaxIdent(x) ((x)->max_ident)
184     #define MaxPerIp(x) ((x)->max_perip)
185     #define MaxSendq(x) ((x)->max_sendq)
186     #define CurrUserCount(x) ((x)->curr_user_count)
187     #define CidrBitlenIPV4(x) ((x)->cidr_bitlen_ipv4)
188     #define CidrBitlenIPV6(x) ((x)->cidr_bitlen_ipv6)
189     #define NumberPerCidr(x) ((x)->number_per_cidr)
190    
191     #define ClassPtr(x) ((x)->class_ptr)
192    
193    
194     #define CONF_ILLEGAL 0x80000000
195     #define CONF_RESERVED 0x00000001
196     #define CONF_CLIENT 0x00000002
197     #define CONF_SERVER 0x00000004
198     #define CONF_OPERATOR 0x00000008
199     #define CONF_KILL 0x00000010
200     #define CONF_KLINE CONF_KILL
201     #define CONF_CLASS 0x00000020
202     #define CONF_LEAF 0x00000040
203     #define CONF_LISTEN_PORT 0x00000080
204     #define CONF_HUB 0x00000100
205     #define CONF_EXEMPTKLINE 0x00000200
206     #define CONF_NOLIMIT 0x00000400
207     #define CONF_DLINE 0x00000800
208     #define CONF_XLINE 0x00001000
209     #define CONF_ULINE 0x00002000
210     #define CONF_EXEMPTDLINE 0x00004000
211     #define CONF_GLINE 0x00008000
212    
213     #define CONF_SERVER_MASK CONF_SERVER
214     #define CONF_CLIENT_MASK (CONF_CLIENT | CONF_OPERATOR | CONF_SERVER_MASK)
215    
216     /* XXX temporary hack */
217     #define CONF_CRESV 0x80000001
218     #define CONF_NRESV 0x80000002
219    
220     #define IsConfIllegal(x) ((x)->status & CONF_ILLEGAL)
221     #define SetConfIllegal(x) ((x)->status |= CONF_ILLEGAL)
222     #define IsConfServer(x) ((x)->status == CONF_SERVER)
223     #define SetConfServer(x) ((x)->status = CONF_SERVER)
224     #define IsConfOperator(x) ((x)->status & CONF_OPERATOR)
225     #define IsConfHub(x) ((x)->status == CONF_HUB)
226     #define SetConfHub(x) ((x)->status = CONF_HUB)
227     #define IsConfLeaf(x) ((x)->status == CONF_LEAF)
228     #define SetConfLeaf(x) ((x)->status = CONF_LEAF)
229     #define IsConfHubOrLeaf(x) ((x)->status & (CONF_HUB|CONF_LEAF))
230     #define IsConfKill(x) ((x)->status == CONF_KILL)
231     #define IsConfClient(x) ((x)->status & CONF_CLIENT)
232     #define IsConfTypeOfClient(x) ((x)->status & CONF_CLIENT_MASK)
233     #define IsConfUline(x) ((x)->status & CONF_ULINE)
234     #define IsConfXline(x) ((x)->status & CONF_XLINE)
235     #define IsConfGline(x) ((x)->status == CONF_GLINE)
236    
237     /* AccessItem->flags */
238    
239     /* Generic flags... */
240     /* access flags... */
241     #define CONF_FLAGS_DO_IDENTD 0x00000001
242     #define CONF_FLAGS_LIMIT_IP 0x00000002
243     #define CONF_FLAGS_NO_TILDE 0x00000004
244     #define CONF_FLAGS_NEED_IDENTD 0x00000008
245     /* 0x00000010 */
246     #define CONF_FLAGS_NOMATCH_IP 0x00000020
247     #define CONF_FLAGS_EXEMPTKLINE 0x00000040
248     #define CONF_FLAGS_NOLIMIT 0x00000080
249     #define CONF_FLAGS_IDLE_LINED 0x00000100
250     #define CONF_FLAGS_SPOOF_IP 0x00000200
251     #define CONF_FLAGS_SPOOF_NOTICE 0x00000400
252     #define CONF_FLAGS_REDIR 0x00000800
253     #define CONF_FLAGS_EXEMPTGLINE 0x00001000
254     #define CONF_FLAGS_RESTRICTED 0x00002000
255     #define CONF_FLAGS_CAN_FLOOD 0x00100000
256     #define CONF_FLAGS_NEED_PASSWORD 0x00200000
257     /* server flags */
258     #define CONF_FLAGS_ALLOW_AUTO_CONN 0x00004000
259     #define CONF_FLAGS_LAZY_LINK 0x00008000
260     #define CONF_FLAGS_ENCRYPTED 0x00010000
261     #define CONF_FLAGS_COMPRESSED 0x00020000
262     #define CONF_FLAGS_TEMPORARY 0x00040000
263     #define CONF_FLAGS_CRYPTLINK 0x00080000
264     #define CONF_FLAGS_BURST_AWAY 0x00400000
265     #define CONF_FLAGS_EXEMPTRESV 0x00800000
266     #define CONF_FLAGS_TOPICBURST 0x01000000
267    
268     /* Macros for struct AccessItem */
269     #define IsLimitIp(x) ((x)->flags & CONF_FLAGS_LIMIT_IP)
270     #define IsNoTilde(x) ((x)->flags & CONF_FLAGS_NO_TILDE)
271     #define IsConfCanFlood(x) ((x)->flags & CONF_FLAGS_CAN_FLOOD)
272     #define IsNeedPassword(x) ((x)->flags & CONF_FLAGS_NEED_PASSWORD)
273     #define IsNeedIdentd(x) ((x)->flags & CONF_FLAGS_NEED_IDENTD)
274     #define IsNoMatchIp(x) ((x)->flags & CONF_FLAGS_NOMATCH_IP)
275     #define IsConfExemptKline(x) ((x)->flags & CONF_FLAGS_EXEMPTKLINE)
276     #define IsConfExemptLimits(x) ((x)->flags & CONF_FLAGS_NOLIMIT)
277     #define IsConfExemptGline(x) ((x)->flags & CONF_FLAGS_EXEMPTGLINE)
278     #define IsConfExemptResv(x) ((x)->flags & CONF_FLAGS_EXEMPTRESV)
279     #define IsConfIdlelined(x) ((x)->flags & CONF_FLAGS_IDLE_LINED)
280     #define IsConfDoIdentd(x) ((x)->flags & CONF_FLAGS_DO_IDENTD)
281     #define IsConfDoSpoofIp(x) ((x)->flags & CONF_FLAGS_SPOOF_IP)
282     #define IsConfSpoofNotice(x) ((x)->flags & CONF_FLAGS_SPOOF_NOTICE)
283     #define IsConfRestricted(x) ((x)->flags & CONF_FLAGS_RESTRICTED)
284     #define IsConfEncrypted(x) ((x)->flags & CONF_FLAGS_ENCRYPTED)
285     #define SetConfEncrypted(x) ((x)->flags |= CONF_FLAGS_ENCRYPTED)
286     #define ClearConfEncrypted(x) ((x)->flags &= ~CONF_FLAGS_ENCRYPTED)
287     #define IsConfCompressed(x) ((x)->flags & CONF_FLAGS_COMPRESSED)
288     #define SetConfCompressed(x) ((x)->flags |= CONF_FLAGS_COMPRESSED)
289     #define ClearConfCompressed(x) ((x)->flags &= ~CONF_FLAGS_COMPRESSED)
290     #define IsConfCryptLink(x) ((x)->flags & CONF_FLAGS_CRYPTLINK)
291     #define SetConfCryptLink(x) ((x)->flags |= CONF_FLAGS_CRYPTLINK)
292     #define ClearConfCryptLink(x) ((x)->flags &= ~CONF_FLAGS_CRYPTLINK)
293     #define IsConfAllowAutoConn(x) ((x)->flags & CONF_FLAGS_ALLOW_AUTO_CONN)
294     #define SetConfAllowAutoConn(x) ((x)->flags |= CONF_FLAGS_ALLOW_AUTO_CONN)
295     #define ClearConfAllowAutoConn(x) ((x)->flags &= ~CONF_FLAGS_ALLOW_AUTO_CONN)
296     #define IsConfTemporary(x) ((x)->flags & CONF_FLAGS_TEMPORARY)
297     #define SetConfTemporary(x) ((x)->flags |= CONF_FLAGS_TEMPORARY)
298     #define IsConfRedir(x) ((x)->flags & CONF_FLAGS_REDIR)
299     #define IsConfAwayBurst(x) ((x)->flags & CONF_FLAGS_BURST_AWAY)
300     #define SetConfAwayBurst(x) ((x)->flags |= CONF_FLAGS_BURST_AWAY)
301     #define ClearConfAwayBurst(x) ((x)->flags &= ~CONF_FLAGS_BURST_AWAY)
302     #define IsConfTopicBurst(x) ((x)->flags & CONF_FLAGS_TOPICBURST)
303     #define SetConfTopicBurst(x) ((x)->flags |= CONF_FLAGS_TOPICBURST)
304     #define ClearConfTopicBurst(x) ((x)->flags &= ~CONF_FLAGS_TOPICBURST)
305    
306     /* shared/cluster server entry types
307     * These defines are used for both shared and cluster.
308     */
309     #define SHARED_KLINE 0x0001
310     #define SHARED_TKLINE 0x0002
311     #define SHARED_UNKLINE 0x0004
312     #define SHARED_XLINE 0x0008
313     #define SHARED_TXLINE 0x0010
314     #define SHARED_UNXLINE 0x0020
315     #define SHARED_RESV 0x0040
316     #define SHARED_TRESV 0x0080
317     #define SHARED_UNRESV 0x0100
318     #define SHARED_LOCOPS 0x0200
319     #define SHARED_ALL (SHARED_KLINE | SHARED_TKLINE | SHARED_UNKLINE | \
320     SHARED_XLINE | SHARED_TXLINE | SHARED_UNXLINE | \
321     SHARED_RESV | SHARED_TRESV | SHARED_UNRESV |\
322     SHARED_LOCOPS)
323    
324     /* gline acl entry actions */
325     #define GDENY_BLOCK 0x1
326     #define GDENY_REJECT 0x2
327    
328     struct config_file_entry
329     {
330     const char *dpath; /* DPATH if set from command line */
331     const char *configfile;
332     const char *klinefile;
333     const char *xlinefile;
334     const char *rxlinefile;
335     const char *rklinefile;
336     const char *dlinefile;
337     const char *glinefile;
338     const char *cresvfile;
339     const char *nresvfile;
340    
341     char *logpath;
342     char *operlog;
343    
344     char *servlink_path;
345     char *egdpool_path;
346    
347     MessageFile motd;
348     MessageFile opermotd;
349     MessageFile linksfile;
350    
351     unsigned char compression_level;
352     int gline_min_cidr;
353     int gline_min_cidr6;
354     int dot_in_ip6_addr;
355     int dots_in_ident;
356     int failed_oper_notice;
357     int anti_spam_exit_message_time;
358 michael 950 unsigned int max_accept;
359     unsigned int max_watch;
360 adx 30 int max_nick_time;
361 michael 950 unsigned int max_nick_changes;
362 adx 30 int ts_max_delta;
363     int ts_warn_delta;
364     int anti_nick_flood;
365     int kline_with_reason;
366     int warn_no_nline;
367     int invisible_on_connect;
368 michael 584 int stats_e_disabled;
369 adx 30 int stats_o_oper_only;
370     int stats_k_oper_only;
371     int stats_i_oper_only;
372     int stats_P_oper_only;
373     int short_motd;
374     int no_oper_flood;
375     int true_no_oper_flood;
376     int oper_pass_resv;
377     int glines;
378     int hide_spoof_ips;
379     int burst_away;
380     int use_whois_actually;
381     int tkline_expire_notices;
382     int opers_bypass_callerid;
383     int ignore_bogus_ts;
384     char *kline_reason;
385     int pace_wait;
386     int pace_wait_simple;
387     int gline_time;
388     int gline_logging;
389     int idletime;
390     int oper_only_umodes;
391     int oper_umodes;
392     int max_targets;
393     int caller_id_wait;
394     int min_nonwildcard;
395     int min_nonwildcard_simple;
396     int kill_chase_time_limit;
397     int default_floodcount;
398     int client_flood;
399     /* 0 == don't use throttle... */
400     int throttle_time;
401     int use_egd;
402     int ping_cookie;
403     int disable_auth;
404     int disable_remote;
405     #ifdef HAVE_LIBCRYPTO
406     struct EncCapability *default_cipher_preference;
407     #endif
408     };
409    
410     struct config_channel_entry
411     {
412 michael 632 int disable_fake_channels;
413 adx 30 int restrict_channels;
414     int disable_local_channels;
415     int use_except;
416     int use_invex;
417     int use_knock;
418     int knock_delay;
419     int knock_delay_channel;
420     unsigned int max_bans;
421     unsigned int max_chans_per_user;
422     int no_create_on_split;
423     int no_join_on_split;
424     int quiet_on_ban;
425     int burst_topicwho;
426     int default_split_server_count;
427     int default_split_user_count;
428     };
429    
430     struct config_server_hide
431     {
432     int flatten_links;
433     int hide_servers;
434     char *hidden_name;
435     int links_delay;
436     int links_disabled;
437     int hidden;
438     int disable_hidden;
439     int hide_server_ips;
440     };
441    
442     struct server_info
443     {
444     char *name;
445     char *description;
446     char *network_name;
447     char *network_desc;
448     #ifdef HAVE_LIBCRYPTO
449     char *rsa_private_key_file;
450     RSA *rsa_private_key;
451 michael 967 SSL_CTX *server_ctx;
452     SSL_CTX *client_ctx;
453     unsigned int tls_version;
454 adx 30 #endif
455     char *sid;
456     int hub;
457     struct irc_ssaddr ip;
458     struct irc_ssaddr ip6;
459     int max_clients;
460     int specific_ipv4_vhost;
461     int specific_ipv6_vhost;
462     struct sockaddr_in dns_host;
463     int can_use_v6;
464     };
465    
466     struct admin_info
467     {
468     char *name;
469     char *description;
470     char *email;
471     };
472    
473     struct logging_entry
474     {
475     unsigned int use_logging;
476     char operlog[PATH_MAX + 1];
477     char userlog[PATH_MAX + 1];
478     char glinelog[PATH_MAX + 1];
479     char ioerrlog[PATH_MAX + 1];
480     char klinelog[PATH_MAX + 1];
481     char killlog[PATH_MAX + 1];
482     char operspylog[PATH_MAX + 1];
483     char failed_operlog[PATH_MAX + 1];
484     };
485    
486     extern int ypass;
487     extern dlink_list class_items;
488     extern dlink_list server_items;
489     extern dlink_list cluster_items;
490     extern dlink_list hub_items;
491     extern dlink_list rxconf_items;
492     extern dlink_list rkconf_items;
493     extern dlink_list leaf_items;
494     extern dlink_list temporary_klines;
495     extern dlink_list temporary_dlines;
496     extern dlink_list temporary_glines;
497     extern dlink_list temporary_xlines;
498     extern dlink_list temporary_rxlines;
499     extern dlink_list temporary_rklines;
500     extern struct logging_entry ConfigLoggingEntry;
501     extern struct config_file_entry ConfigFileEntry;/* defined in ircd.c*/
502     extern struct config_channel_entry ConfigChannel;/* defined in channel.c*/
503     extern struct config_server_hide ConfigServerHide; /* defined in s_conf.c */
504     extern struct server_info ServerInfo; /* defined in ircd.c */
505     extern struct admin_info AdminInfo; /* defined in ircd.c */
506     extern int valid_wild_card(struct Client *, int, int, ...);
507     /* End GLOBAL section */
508    
509 michael 948 extern unsigned int get_sendq(struct Client *);
510 adx 30 extern const char *get_client_class(struct Client *);
511     extern int get_client_ping(struct Client *, int *);
512     extern void check_class(void);
513     extern void init_class(void);
514     extern struct ConfItem *find_class(const char *);
515     extern void init_ip_hash_table(void);
516 michael 948 extern void count_ip_hash(unsigned int *, uint64_t *);
517 adx 30 extern void remove_one_ip(struct irc_ssaddr *);
518     extern struct ConfItem *make_conf_item(ConfType type);
519     extern void free_access_item(struct AccessItem *);
520     extern void read_conf_files(int);
521     extern int attach_conf(struct Client *, struct ConfItem *);
522     extern int attach_connect_block(struct Client *, const char *, const char *);
523    
524     extern int detach_conf(struct Client *, ConfType);
525    
526     extern struct ConfItem *find_conf_name(dlink_list *, const char *, ConfType);
527     extern struct ConfItem *find_conf_exact(ConfType, const char *, const char *, const char *);
528     extern struct AccessItem *find_kill(struct Client *);
529     extern struct AccessItem *find_gline(struct Client *);
530     extern int conf_connect_allowed(struct irc_ssaddr *, int);
531     extern char *oper_privs_as_string(const unsigned int);
532 michael 593 extern void split_nuh(struct split_nuh_item *);
533 adx 30 extern struct ConfItem *find_matching_name_conf(ConfType, const char *,
534     const char *, const char *, int);
535     extern struct ConfItem *find_exact_name_conf(ConfType, const char *,
536     const char *, const char *);
537     extern void delete_conf_item(struct ConfItem *);
538     extern void report_confitem_types(struct Client *, ConfType, int);
539     extern void yyerror(const char *);
540     extern int conf_yy_fatal_error(const char *);
541     extern int conf_fbgets(char *, unsigned int, FBFILE *);
542     extern void write_conf_line(struct Client *, struct ConfItem *,
543     const char *, time_t);
544     extern int remove_conf_line(ConfType, struct Client *, const char *,
545     const char *);
546     extern void add_temp_line(struct ConfItem *);
547     extern void cleanup_tklines(void *);
548     extern const char *get_conf_name(ConfType);
549     extern int rehash(int);
550 michael 593 extern int conf_add_server(struct ConfItem *, const char *);
551 adx 30 extern void conf_add_class_to_conf(struct ConfItem *, const char *);
552     extern void conf_add_d_conf(struct AccessItem *);
553    
554     /* XXX consider moving these into csvlib.h */
555     extern void parse_csv_file(FBFILE *, ConfType);
556    
557     extern char *get_oper_name(const struct Client *);
558    
559     extern void *map_to_conf(struct ConfItem *);
560     extern struct ConfItem *unmap_conf_item(void *);
561     /* XXX should the parse_aline stuff go into another file ?? */
562     #define AWILD 0x1 /* check wild cards */
563     #define NOUSERLOOKUP 0x2 /* Don't lookup the user@host on /rkline nick */
564     extern int parse_aline(const char *, struct Client *, int, char **,
565     int, char **, char **, time_t *, char **, char **);
566     extern int valid_comment(struct Client *, char *, int);
567    
568    
569     #define TK_SECONDS 0
570     #define TK_MINUTES 1
571     extern time_t valid_tkline(char *, int);
572     extern int match_conf_password(const char *, const struct AccessItem *);
573    
574     #define NOT_AUTHORIZED (-1)
575 michael 618 #define I_LINE_FULL (-2)
576     #define TOO_MANY (-3)
577     #define BANNED_CLIENT (-4)
578     #define TOO_FAST (-5)
579 adx 30
580     #define CLEANUP_TKLINES_TIME 60
581    
582     extern void cluster_a_line(struct Client *,
583     const char *, int, int, const char *,...);
584     extern void rebuild_cidr_class(struct ConfItem *, struct ClassItem *);
585    
586 michael 948 /* XXX **/
587     extern int yylex(void);
588    
589 adx 30 #endif /* INCLUDED_s_conf_h */

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision