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

Comparing ircd-hybrid/trunk/include/conf.h (file contents):
Revision 3473 by michael, Sun May 4 15:40:26 2014 UTC vs.
Revision 9898 by michael, Sun Jan 17 06:19:26 2021 UTC

# Line 1 | Line 1
1   /*
2   *  ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3   *
4 < *  Copyright (c) 1997-2014 ircd-hybrid development team
4 > *  Copyright (c) 1997-2021 ircd-hybrid development team
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 15 | Line 15
15   *
16   *  You should have received a copy of the GNU General Public License
17   *  along with this program; if not, write to the Free Software
18 < *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
18 > *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
19   *  USA
20   */
21  
# Line 24 | Line 24
24   * \version $Id$
25   */
26  
27 < #ifndef INCLUDED_s_conf_h
28 < #define INCLUDED_s_conf_h
27 > #ifndef INCLUDED_conf_h
28 > #define INCLUDED_conf_h
29   #include "config.h"
30 #include "ircd_defs.h"
30   #include "client.h"
31   #include "conf_class.h"
32 + #include "tls.h"
33  
34  
35 < #define CONF_NOREASON "<No reason supplied>"
36 <
37 < #define IsConfOperator(x)       ((x)->type == CONF_OPER)
38 < #define IsConfKill(x)           ((x)->type == CONF_KLINE)
39 < #define IsConfClient(x)         ((x)->type == CONF_CLIENT)
40 < #define IsConfGline(x)          ((x)->type == CONF_GLINE)
41 <
42 < /* MaskItem->flags */
43 < #define CONF_FLAGS_DO_IDENTD            0x00000001
44 < #define CONF_FLAGS_NO_TILDE             0x00000004
45 < #define CONF_FLAGS_NEED_IDENTD          0x00000008
46 < #define CONF_FLAGS_EXEMPTKLINE          0x00000010
47 < #define CONF_FLAGS_NOLIMIT              0x00000020
48 < #define CONF_FLAGS_SPOOF_IP             0x00000040
49 < #define CONF_FLAGS_SPOOF_NOTICE         0x00000080
50 < #define CONF_FLAGS_REDIR                0x00000100
51 < #define CONF_FLAGS_EXEMPTGLINE          0x00000200
52 < #define CONF_FLAGS_CAN_FLOOD            0x00000400
53 < #define CONF_FLAGS_NEED_PASSWORD        0x00000800
54 < #define CONF_FLAGS_ALLOW_AUTO_CONN      0x00001000
55 < #define CONF_FLAGS_ENCRYPTED            0x00002000
56 < #define CONF_FLAGS_IN_DATABASE          0x00004000
57 < #define CONF_FLAGS_EXEMPTRESV           0x00008000
58 < #define CONF_FLAGS_SSL                  0x00010000
59 < #define CONF_FLAGS_WEBIRC               0x00020000
60 <
61 < /* Macros for struct MaskItem */
62 < #define IsConfWebIRC(x)         ((x)->flags & CONF_FLAGS_WEBIRC)
63 < #define IsNoTilde(x)            ((x)->flags & CONF_FLAGS_NO_TILDE)
64 < #define IsConfCanFlood(x)       ((x)->flags & CONF_FLAGS_CAN_FLOOD)
65 < #define IsNeedPassword(x)       ((x)->flags & CONF_FLAGS_NEED_PASSWORD)
66 < #define IsNeedIdentd(x)         ((x)->flags & CONF_FLAGS_NEED_IDENTD)
67 < #define IsConfExemptKline(x)    ((x)->flags & CONF_FLAGS_EXEMPTKLINE)
68 < #define IsConfExemptLimits(x)   ((x)->flags & CONF_FLAGS_NOLIMIT)
69 < #define IsConfExemptGline(x)    ((x)->flags & CONF_FLAGS_EXEMPTGLINE)
70 < #define IsConfExemptResv(x)     ((x)->flags & CONF_FLAGS_EXEMPTRESV)
71 < #define IsConfDoIdentd(x)       ((x)->flags & CONF_FLAGS_DO_IDENTD)
72 < #define IsConfDoSpoofIp(x)      ((x)->flags & CONF_FLAGS_SPOOF_IP)
73 < #define IsConfSpoofNotice(x)    ((x)->flags & CONF_FLAGS_SPOOF_NOTICE)
74 < #define IsConfEncrypted(x)      ((x)->flags & CONF_FLAGS_ENCRYPTED)
75 < #define SetConfEncrypted(x)     ((x)->flags |= CONF_FLAGS_ENCRYPTED)
76 < #define ClearConfEncrypted(x)   ((x)->flags &= ~CONF_FLAGS_ENCRYPTED)
77 < #define IsConfAllowAutoConn(x)  ((x)->flags & CONF_FLAGS_ALLOW_AUTO_CONN)
78 < #define SetConfAllowAutoConn(x) ((x)->flags |= CONF_FLAGS_ALLOW_AUTO_CONN)
79 < #define ClearConfAllowAutoConn(x) ((x)->flags &= ~CONF_FLAGS_ALLOW_AUTO_CONN)
80 < #define IsConfRedir(x)          ((x)->flags & CONF_FLAGS_REDIR)
81 < #define IsConfSSL(x)      ((x)->flags & CONF_FLAGS_SSL)
82 < #define SetConfSSL(x)     ((x)->flags |= CONF_FLAGS_SSL)
83 < #define ClearConfSSL(x)   ((x)->flags &= ~CONF_FLAGS_SSL)
84 < #define IsConfDatabase(x)      ((x)->flags & CONF_FLAGS_IN_DATABASE)
85 < #define SetConfDatabase(x)     ((x)->flags |= CONF_FLAGS_IN_DATABASE)
86 <
87 <
88 < /* shared/cluster server entry types
89 < * These defines are used for both shared and cluster.
90 < */
91 < #define SHARED_KLINE            0x0001
92 < #define SHARED_UNKLINE          0x0002
93 < #define SHARED_XLINE            0x0004
94 < #define SHARED_UNXLINE          0x0008
95 < #define SHARED_RESV             0x0010
96 < #define SHARED_UNRESV           0x0020
97 < #define SHARED_LOCOPS           0x0040
98 < #define SHARED_DLINE            0x0080
99 < #define SHARED_UNDLINE          0x0100
100 < #define SHARED_ALL              (SHARED_KLINE | SHARED_UNKLINE |\
101 <                                 SHARED_XLINE | SHARED_UNXLINE |\
102 <                                 SHARED_RESV | SHARED_UNRESV |\
103 <                                 SHARED_LOCOPS | SHARED_DLINE | SHARED_UNDLINE)
35 > enum
36 > {
37 >  TK_SECONDS,
38 >  TK_MINUTES
39 > };
40  
41 + enum { CLEANUP_TKLINES_TIME = 60 };
42  
43   enum maskitem_type
44   {
45 <  CONF_CLIENT   = 1 <<  0,
46 <  CONF_SERVER   = 1 <<  1,
47 <  CONF_KLINE    = 1 <<  2,
48 <  CONF_DLINE    = 1 <<  3,
49 <  CONF_EXEMPT   = 1 <<  4,
50 <  CONF_CLUSTER  = 1 <<  5,
51 <  CONF_XLINE    = 1 <<  6,
52 <  CONF_ULINE    = 1 <<  7,
53 <  CONF_GLINE    = 1 <<  8,
54 <  CONF_CRESV    = 1 <<  9,
55 <  CONF_NRESV    = 1 << 10,
56 <  CONF_SERVICE  = 1 << 11,
57 <  CONF_OPER     = 1 << 12,
45 >  CONF_CLIENT = 1,
46 >  CONF_SERVER,
47 >  CONF_KLINE,
48 >  CONF_DLINE,
49 >  CONF_EXEMPT,
50 >  CONF_OPER
51 > };
52 >
53 > /* MaskItem->flags */
54 > enum
55 > {
56 >  CONF_FLAGS_NO_TILDE        = 1 <<  0,
57 >  CONF_FLAGS_NEED_IDENTD     = 1 <<  1,
58 >  CONF_FLAGS_EXEMPTKLINE     = 1 <<  2,
59 >  CONF_FLAGS_NOLIMIT         = 1 <<  3,
60 >  CONF_FLAGS_SPOOF_IP        = 1 <<  4,
61 >  CONF_FLAGS_REDIR           = 1 <<  5,
62 >  CONF_FLAGS_CAN_FLOOD       = 1 <<  6,
63 >  CONF_FLAGS_NEED_PASSWORD   = 1 <<  7,
64 >  CONF_FLAGS_ALLOW_AUTO_CONN = 1 <<  8,
65 >  CONF_FLAGS_ENCRYPTED       = 1 <<  9,
66 >  CONF_FLAGS_IN_DATABASE     = 1 << 10,
67 >  CONF_FLAGS_EXEMPTRESV      = 1 << 11,
68 >  CONF_FLAGS_TLS             = 1 << 12,
69 >  CONF_FLAGS_WEBIRC          = 1 << 13,
70 >  CONF_FLAGS_EXEMPTXLINE     = 1 << 14
71   };
72  
73   enum
# Line 129 | Line 79 | enum
79    TOO_FAST       = -5
80   };
81  
82 < struct conf_parser_context
83 < {
84 <  unsigned int boot;
85 <  unsigned int pass;
86 <  FILE *conf_file;
87 < };
82 > #define CONF_NOREASON "<No reason supplied>"
83 >
84 > /* Macros for struct MaskItem */
85 > #define IsConfWebIRC(x)           ((x)->flags & CONF_FLAGS_WEBIRC)
86 > #define IsNoTilde(x)              ((x)->flags & CONF_FLAGS_NO_TILDE)
87 > #define IsConfCanFlood(x)         ((x)->flags & CONF_FLAGS_CAN_FLOOD)
88 > #define IsNeedPassword(x)         ((x)->flags & CONF_FLAGS_NEED_PASSWORD)
89 > #define IsNeedIdentd(x)           ((x)->flags & CONF_FLAGS_NEED_IDENTD)
90 > #define IsConfExemptKline(x)      ((x)->flags & CONF_FLAGS_EXEMPTKLINE)
91 > #define IsConfExemptXline(x)      ((x)->flags & CONF_FLAGS_EXEMPTXLINE)
92 > #define IsConfExemptLimits(x)     ((x)->flags & CONF_FLAGS_NOLIMIT)
93 > #define IsConfExemptResv(x)       ((x)->flags & CONF_FLAGS_EXEMPTRESV)
94 > #define IsConfDoSpoofIp(x)        ((x)->flags & CONF_FLAGS_SPOOF_IP)
95 > #define IsConfAllowAutoConn(x)    ((x)->flags & CONF_FLAGS_ALLOW_AUTO_CONN)
96 > #define SetConfAllowAutoConn(x)   ((x)->flags |= CONF_FLAGS_ALLOW_AUTO_CONN)
97 > #define ClearConfAllowAutoConn(x) ((x)->flags &= ~CONF_FLAGS_ALLOW_AUTO_CONN)
98 > #define IsConfRedir(x)            ((x)->flags & CONF_FLAGS_REDIR)
99 > #define IsConfTLS(x)              ((x)->flags & CONF_FLAGS_TLS)
100 > #define IsConfDatabase(x)         ((x)->flags & CONF_FLAGS_IN_DATABASE)
101 > #define SetConfDatabase(x)        ((x)->flags |= CONF_FLAGS_IN_DATABASE)
102 >
103 >
104 > #define IsConfKill(x)           ((x)->type == CONF_KLINE)
105 > #define IsConfClient(x)         ((x)->type == CONF_CLIENT)
106  
107   struct split_nuh_item
108   {
# Line 155 | Line 123 | struct MaskItem
123    dlink_node         node;
124    dlink_list         leaf_list;
125    dlink_list         hub_list;
158  dlink_list         exempt_list;
126    enum maskitem_type type;
127 <  unsigned int       dns_failed;
128 <  unsigned int       dns_pending;
127 >  bool       active;
128 >  bool       dns_failed;
129 >  bool       dns_pending;
130    unsigned int       flags;
131    unsigned int       modes;
132    unsigned int       port;
165  unsigned int       count;
133    unsigned int       aftype;
167  unsigned int       active;
134    unsigned int       htype;
135    unsigned int       ref_count;  /* Number of *LOCAL* clients using this */
136    int                bits;
137 <  time_t             until;     /* Hold action until this time (calendar time) */
138 <  time_t             setat;
139 <  struct irc_ssaddr  bind;  /* ip to bind to for outgoing connect */
140 <  struct irc_ssaddr  addr;  /* ip to connect to */
137 >  uintmax_t          until;     /* Hold action until this time (calendar time) */
138 >  uintmax_t          setat;
139 >  uintmax_t          timeout;
140 >  struct irc_ssaddr  *bind;  /* ip to bind to for outgoing connect */
141 >  struct irc_ssaddr  *addr;  /* ip to connect to */
142    struct ClassItem  *class;  /* Class of connection */
143    char              *name;
144    char              *user;     /* user part of user@host */
# Line 180 | Line 147 | struct MaskItem
147    char              *spasswd;  /* Password to send. */
148    char              *reason;
149    char              *certfp;
150 +  char              *whois;
151    char              *cipher_list;
184  void              *rsa_public_key;
185 };
186
187 struct exempt
188 {
189  dlink_node node;
190  char *name;
191  char *user;
192  char *host;
193  size_t len;
194  time_t when;
195  struct irc_ssaddr addr;
196  int bits;
197  int type;
198  int coid;
152   };
153  
154 < struct CidrItem
154 > struct conf_parser_context
155   {
156 <  dlink_node node;
157 <  struct irc_ssaddr mask;
158 <  unsigned int number_on_this_cidr;
156 >  unsigned int boot;
157 >  unsigned int pass;
158 >  FILE *conf_file;
159   };
160  
161 < struct config_file_entry
161 > struct config_general_entry
162   {
163 <  const char *dpath;          /* DPATH if set from command line */
163 >  const char *dpath;
164    const char *mpath;
165    const char *spath;
166    const char *configfile;
167    const char *klinefile;
215  const char *glinefile;
168    const char *xlinefile;
169    const char *dlinefile;
170    const char *resvfile;
171  
172 <  char *egdpool_path;
173 <  char *service_name;
174 <
175 <  int gline_min_cidr;
176 <  int gline_min_cidr6;
177 <  int dots_in_ident;
178 <  int failed_oper_notice;
227 <  int anti_spam_exit_message_time;
172 >  unsigned int dline_min_cidr;
173 >  unsigned int dline_min_cidr6;
174 >  unsigned int kline_min_cidr;
175 >  unsigned int kline_min_cidr6;
176 >  unsigned int specials_in_ident;
177 >  unsigned int failed_oper_notice;
178 >  unsigned int anti_spam_exit_message_time;
179    unsigned int max_accept;
180 <  unsigned int max_watch;
181 <  int max_nick_time;
180 >  unsigned int max_monitor;
181 >  unsigned int whowas_history_length;
182 >  unsigned int away_time;
183 >  unsigned int away_count;
184 >  unsigned int max_nick_time;
185    unsigned int max_nick_changes;
186 <  int ts_max_delta;
187 <  int ts_warn_delta;
188 <  int anti_nick_flood;
189 <  int warn_no_connect_block;
190 <  int invisible_on_connect;
191 <  int stats_e_disabled;
192 <  int stats_o_oper_only;
193 <  int stats_k_oper_only;
194 <  int stats_i_oper_only;
195 <  int stats_P_oper_only;
196 <  int stats_u_oper_only;
197 <  int short_motd;
198 <  int no_oper_flood;
199 <  int true_no_oper_flood;
200 <  int oper_pass_resv;
201 <  int glines;
202 <  int hide_spoof_ips;
203 <  int tkline_expire_notices;
204 <  int opers_bypass_callerid;
251 <  int ignore_bogus_ts;
252 <  int pace_wait;
253 <  int pace_wait_simple;
254 <  int gline_time;
255 <  int gline_request_time;
256 <  int oper_only_umodes;
257 <  int oper_umodes;
186 >  unsigned int ts_max_delta;
187 >  unsigned int ts_warn_delta;
188 >  unsigned int anti_nick_flood;
189 >  unsigned int warn_no_connect_block;
190 >  unsigned int invisible_on_connect;
191 >  unsigned int stats_e_disabled;
192 >  unsigned int stats_i_oper_only;
193 >  unsigned int stats_k_oper_only;
194 >  unsigned int stats_m_oper_only;
195 >  unsigned int stats_o_oper_only;
196 >  unsigned int stats_P_oper_only;
197 >  unsigned int stats_u_oper_only;
198 >  unsigned int short_motd;
199 >  unsigned int no_oper_flood;
200 >  unsigned int opers_bypass_callerid;
201 >  unsigned int pace_wait;
202 >  unsigned int pace_wait_simple;
203 >  unsigned int oper_only_umodes;
204 >  unsigned int oper_umodes;
205    unsigned int max_targets;
206 <  int caller_id_wait;
207 <  int min_nonwildcard;
208 <  int min_nonwildcard_simple;
209 <  int kill_chase_time_limit;
210 <  int default_floodcount;
211 <  /* 0 == don't use throttle... */
212 <  int throttle_time;
213 <  int use_egd;
214 <  int ping_cookie;
215 <  int disable_auth;
216 <  int cycle_on_host_change;
206 >  unsigned int caller_id_wait;
207 >  unsigned int min_nonwildcard;
208 >  unsigned int min_nonwildcard_simple;
209 >  unsigned int kill_chase_time_limit;
210 >  unsigned int default_floodcount;
211 >  unsigned int default_floodtime;
212 >  unsigned int throttle_count;
213 >  unsigned int throttle_time;
214 >  unsigned int ping_cookie;
215 >  unsigned int disable_auth;
216 >  unsigned int cycle_on_host_change;
217   };
218  
219   struct config_channel_entry
220   {
221 <  int disable_fake_channels;
222 <  int knock_delay;
223 <  int knock_delay_channel;
221 >  unsigned int enable_extbans;
222 >  unsigned int disable_fake_channels;
223 >  unsigned int invite_client_count;
224 >  unsigned int invite_client_time;
225 >  unsigned int invite_delay_channel;
226 >  unsigned int invite_expire_time;
227 >  unsigned int knock_client_count;
228 >  unsigned int knock_client_time;
229 >  unsigned int knock_delay_channel;
230 >  unsigned int max_invites;
231    unsigned int max_bans;
232 <  unsigned int max_chans_per_user;
233 <  unsigned int max_chans_per_oper;
234 <  int no_create_on_split;
235 <  int no_join_on_split;
282 <  int default_split_server_count;
283 <  int default_split_user_count;
232 >  unsigned int max_bans_large;
233 >  unsigned int max_channels;
234 >  unsigned int default_join_flood_count;
235 >  unsigned int default_join_flood_time;
236   };
237  
238 < struct config_server_hide
238 > struct config_serverhide_entry
239   {
240    char *hidden_name;
241 <  int flatten_links;
242 <  int disable_remote_commands;
243 <  int hide_servers;
244 <  int hide_services;
245 <  int links_delay;
246 <  int links_disabled;
247 <  int hidden;
248 <  int hide_server_ips;
241 >  char *flatten_links_file;
242 >  unsigned int flatten_links;
243 >  unsigned int flatten_links_delay;
244 >  unsigned int disable_remote_commands;
245 >  unsigned int hide_servers;
246 >  unsigned int hide_services;
247 >  unsigned int hidden;
248 >  unsigned int hide_server_ips;
249   };
250  
251 < struct server_info
251 > struct config_serverinfo_entry
252   {
253    char *sid;
254    char *name;
255    char *description;
256    char *network_name;
257 <  char *network_desc;
257 >  char *network_description;
258    char *rsa_private_key_file;
259 <  void *rsa_private_key;
260 <  void *server_ctx;
261 <  void *client_ctx;
262 <  int hub;
263 <  struct irc_ssaddr ip;
264 <  struct irc_ssaddr ip6;
265 <  unsigned int max_clients;
259 >  char *tls_certificate_file;
260 >  char *tls_dh_param_file;
261 >  char *tls_supported_groups;
262 >  char *tls_cipher_list;
263 >  char *tls_cipher_suites;
264 >  char *tls_message_digest_algorithm;
265 >  tls_context_t tls_ctx;
266 >  tls_md_t message_digest_algorithm;
267 >  unsigned int hub;
268 >  unsigned int default_max_clients;
269    unsigned int max_nick_length;
270    unsigned int max_topic_length;
316  int specific_ipv4_vhost;
317  int specific_ipv6_vhost;
318  struct sockaddr_in dns_host;
319  int can_use_v6;
271   };
272  
273 < struct admin_info
273 > struct config_admin_entry
274   {
275    char *name;
276    char *description;
277    char *email;
278   };
279  
280 < struct logging_entry
280 > struct config_log_entry
281   {
282    unsigned int use_logging;
283   };
284  
285 + struct aline_ctx
286 + {
287 +  bool add;
288 +  bool simple_mask;
289 +  char *mask;
290 +  char *user;
291 +  char *host;
292 +  char *reason;
293 +  char *server;
294 +  uintmax_t duration;
295 + };
296 +
297   extern dlink_list flatten_links;
298 < extern dlink_list server_items;
299 < extern dlink_list cluster_items;
337 < extern dlink_list xconf_items;
338 < extern dlink_list uconf_items;
339 < extern dlink_list oconf_items;
340 < extern dlink_list service_items;
341 < extern dlink_list nresv_items;
342 < extern dlink_list cresv_items;
298 > extern dlink_list connect_items;
299 > extern dlink_list operator_items;
300   extern struct conf_parser_context conf_parser_ctx;
301 < extern struct logging_entry ConfigLoggingEntry;
302 < extern struct config_file_entry ConfigFileEntry;/* defined in ircd.c*/
303 < extern struct config_channel_entry ConfigChannel;/* defined in channel.c*/
304 < extern struct config_server_hide ConfigServerHide; /* defined in s_conf.c */
305 < extern struct server_info ServerInfo;       /* defined in ircd.c */
306 < extern struct admin_info AdminInfo;        /* defined in ircd.c */
307 < extern int valid_wild_card_simple(const char *);
308 < extern int valid_wild_card(struct Client *, int, int, ...);
309 < /* End GLOBAL section */
310 <
354 < extern void init_ip_hash_table(void);
355 < extern void count_ip_hash(unsigned int *, uint64_t *);
356 < extern void remove_one_ip(struct irc_ssaddr *);
301 > extern struct config_log_entry ConfigLog;
302 > extern struct config_general_entry ConfigGeneral;
303 > extern struct config_channel_entry ConfigChannel;
304 > extern struct config_serverhide_entry ConfigServerHide;
305 > extern struct config_serverinfo_entry ConfigServerInfo;
306 > extern struct config_admin_entry ConfigAdminInfo;
307 >
308 > extern bool valid_wild_card_simple(const char *);
309 > extern bool valid_wild_card(int, ...);
310 >
311   extern struct MaskItem *conf_make(enum maskitem_type);
312 < extern void read_conf_files(int);
313 < extern int attach_conf(struct Client *, struct MaskItem *);
314 < extern int attach_connect_block(struct Client *, const char *, const char *);
361 < extern int check_client(struct Client *);
312 > extern void conf_read_files(bool);
313 > extern int conf_attach(struct Client *, struct MaskItem *);
314 > extern bool conf_check_client(struct Client *);
315  
316  
317 < extern void detach_conf(struct Client *, enum maskitem_type);
317 > extern void conf_detach(struct Client *, enum maskitem_type);
318   extern struct MaskItem *find_conf_name(dlink_list *, const char *, enum maskitem_type);
319 < extern int conf_connect_allowed(struct irc_ssaddr *, int);
367 < extern char *oper_privs_as_string(const unsigned int);
319 > extern int conf_connect_allowed(struct irc_ssaddr *);
320   extern void split_nuh(struct split_nuh_item *);
321 < extern struct MaskItem *find_matching_name_conf(enum maskitem_type, const char *,
322 <                                                const char *, const char *, unsigned int);
371 < extern struct MaskItem *find_exact_name_conf(enum maskitem_type, const struct Client *, const char *,
372 <                                             const char *, const char *);
321 > extern struct MaskItem *operator_find(const struct Client *, const char *);
322 > extern struct MaskItem *connect_find(const char *, int (*)(const char *, const char *));
323   extern void conf_free(struct MaskItem *);
324   extern void yyerror(const char *);
325   extern void conf_error_report(const char *);
326   extern void cleanup_tklines(void *);
327 < extern int rehash(int);
328 < extern void lookup_confhost(struct MaskItem *);
327 > extern void conf_rehash(bool);
328 > extern void conf_dns_lookup(struct MaskItem *);
329   extern void conf_add_class_to_conf(struct MaskItem *, const char *);
330  
331   extern const char *get_oper_name(const struct Client *);
332  
333   /* XXX should the parse_aline stuff go into another file ?? */
334 < #define AWILD 0x1  /* check wild cards */
385 < extern int parse_aline(const char *, struct Client *, int, char **,
386 <                       int, char **, char **, time_t *, char **, char **);
387 < extern int valid_comment(struct Client *, char *, int);
388 <
389 <
390 < #define TK_SECONDS 0
391 < #define TK_MINUTES 1
392 < extern time_t valid_tkline(const char *, const int);
393 < extern int match_conf_password(const char *, const struct MaskItem *);
394 <
395 < #define CLEANUP_TKLINES_TIME 60
334 > extern bool parse_aline(const char *, struct Client *, int, char **, struct aline_ctx *);
335  
336 < extern void cluster_a_line(struct Client *, const char *, int, int, const char *,...);
337 < #endif /* INCLUDED_s_conf_h */
336 > extern uintmax_t valid_tkline(const char *, const int);
337 > extern bool match_conf_password(const char *, const struct MaskItem *);
338 > #endif  /* INCLUDED_conf_h */

Comparing ircd-hybrid/trunk/include/conf.h (property svn:keywords):
Revision 3473 by michael, Sun May 4 15:40:26 2014 UTC vs.
Revision 9898 by michael, Sun Jan 17 06:19:26 2021 UTC

# Line 1 | Line 1
1 < Id Revision
1 > Id

Diff Legend

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