| 28 |
|
#ifdef HAVE_LIBCRYPTO |
| 29 |
|
#include <openssl/rsa.h> |
| 30 |
|
#endif |
| 31 |
– |
#include "fileio.h" /* FBFILE */ |
| 31 |
|
#include "ircd_defs.h" |
| 32 |
|
#include "motd.h" /* MessageFile */ |
| 33 |
|
#include "client.h" |
| 34 |
|
#include "hook.h" |
| 35 |
|
|
| 36 |
|
|
| 38 |
– |
#define CONF_SERVER_INFO_TLS_VERSION_SSLV3 0x1 |
| 39 |
– |
#define CONF_SERVER_INFO_TLS_VERSION_TLSV1 0x2 |
| 40 |
– |
|
| 37 |
|
struct Client; |
| 38 |
|
|
| 39 |
|
extern struct Callback *client_check_cb; |
| 42 |
|
{ |
| 43 |
|
unsigned int boot; |
| 44 |
|
unsigned int pass; |
| 45 |
< |
FBFILE *conf_file; |
| 45 |
> |
FILE *conf_file; |
| 46 |
|
}; |
| 47 |
|
|
| 48 |
|
extern struct conf_parser_context conf_parser_ctx; |
| 240 |
|
#define CONF_FLAGS_LIMIT_IP 0x00000002 |
| 241 |
|
#define CONF_FLAGS_NO_TILDE 0x00000004 |
| 242 |
|
#define CONF_FLAGS_NEED_IDENTD 0x00000008 |
| 243 |
< |
/* 0x00000010 */ |
| 244 |
< |
#define CONF_FLAGS_NOMATCH_IP 0x00000020 |
| 245 |
< |
#define CONF_FLAGS_EXEMPTKLINE 0x00000040 |
| 246 |
< |
#define CONF_FLAGS_NOLIMIT 0x00000080 |
| 247 |
< |
/* 0x00000100 */ |
| 248 |
< |
#define CONF_FLAGS_SPOOF_IP 0x00000200 |
| 249 |
< |
#define CONF_FLAGS_SPOOF_NOTICE 0x00000400 |
| 250 |
< |
#define CONF_FLAGS_REDIR 0x00000800 |
| 251 |
< |
#define CONF_FLAGS_EXEMPTGLINE 0x00001000 |
| 256 |
< |
/* 0x00002000 */ |
| 257 |
< |
#define CONF_FLAGS_CAN_FLOOD 0x00100000 |
| 258 |
< |
#define CONF_FLAGS_NEED_PASSWORD 0x00200000 |
| 243 |
> |
#define CONF_FLAGS_NOMATCH_IP 0x00000010 |
| 244 |
> |
#define CONF_FLAGS_EXEMPTKLINE 0x00000020 |
| 245 |
> |
#define CONF_FLAGS_NOLIMIT 0x00000040 |
| 246 |
> |
#define CONF_FLAGS_SPOOF_IP 0x00000080 |
| 247 |
> |
#define CONF_FLAGS_SPOOF_NOTICE 0x00000100 |
| 248 |
> |
#define CONF_FLAGS_REDIR 0x00000200 |
| 249 |
> |
#define CONF_FLAGS_EXEMPTGLINE 0x00000400 |
| 250 |
> |
#define CONF_FLAGS_CAN_FLOOD 0x00000800 |
| 251 |
> |
#define CONF_FLAGS_NEED_PASSWORD 0x00001000 |
| 252 |
|
/* server flags */ |
| 253 |
< |
#define CONF_FLAGS_ALLOW_AUTO_CONN 0x00004000 |
| 254 |
< |
/* 0x00008000 */ |
| 255 |
< |
#define CONF_FLAGS_ENCRYPTED 0x00010000 |
| 256 |
< |
#define CONF_FLAGS_UNUSED1___ 0x00020000 |
| 257 |
< |
#define CONF_FLAGS_TEMPORARY 0x00040000 |
| 258 |
< |
#define CONF_FLAGS_UNUSED2___ 0x00080000 |
| 259 |
< |
#define CONF_FLAGS_BURST_AWAY 0x00400000 |
| 267 |
< |
#define CONF_FLAGS_EXEMPTRESV 0x00800000 |
| 268 |
< |
#define CONF_FLAGS_TOPICBURST 0x01000000 |
| 269 |
< |
#define CONF_FLAGS_SSL 0x02000000 |
| 253 |
> |
#define CONF_FLAGS_ALLOW_AUTO_CONN 0x00002000 |
| 254 |
> |
#define CONF_FLAGS_ENCRYPTED 0x00004000 |
| 255 |
> |
#define CONF_FLAGS_TEMPORARY 0x00008000 |
| 256 |
> |
#define CONF_FLAGS_BURST_AWAY 0x00010000 |
| 257 |
> |
#define CONF_FLAGS_EXEMPTRESV 0x00020000 |
| 258 |
> |
#define CONF_FLAGS_TOPICBURST 0x00040000 |
| 259 |
> |
#define CONF_FLAGS_SSL 0x00080000 |
| 260 |
|
|
| 261 |
|
/* Macros for struct AccessItem */ |
| 262 |
|
#define IsLimitIp(x) ((x)->flags & CONF_FLAGS_LIMIT_IP) |
| 509 |
|
extern void delete_conf_item(struct ConfItem *); |
| 510 |
|
extern void report_confitem_types(struct Client *, ConfType, int); |
| 511 |
|
extern void yyerror(const char *); |
| 522 |
– |
extern int conf_yy_fatal_error(const char *); |
| 523 |
– |
extern int conf_fbgets(char *, unsigned int, FBFILE *); |
| 512 |
|
extern void write_conf_line(struct Client *, struct ConfItem *, |
| 513 |
|
const char *, time_t); |
| 514 |
|
extern int remove_conf_line(ConfType, struct Client *, const char *, |
| 521 |
|
extern void conf_add_class_to_conf(struct ConfItem *, const char *); |
| 522 |
|
|
| 523 |
|
/* XXX consider moving these into csvlib.h */ |
| 524 |
< |
extern void parse_csv_file(FBFILE *, ConfType); |
| 524 |
> |
extern void parse_csv_file(FILE *, ConfType); |
| 525 |
|
|
| 526 |
< |
extern char *get_oper_name(const struct Client *); |
| 526 |
> |
extern const char *get_oper_name(const struct Client *); |
| 527 |
|
|
| 528 |
|
extern void *map_to_conf(struct ConfItem *); |
| 529 |
|
extern struct ConfItem *unmap_conf_item(void *); |
| 551 |
|
extern void cluster_a_line(struct Client *, |
| 552 |
|
const char *, int, int, const char *,...); |
| 553 |
|
extern void rebuild_cidr_class(struct ConfItem *, struct ClassItem *); |
| 566 |
– |
|
| 567 |
– |
/* XXX **/ |
| 568 |
– |
//extern int yylex(void); |
| 569 |
– |
|
| 554 |
|
#endif /* INCLUDED_s_conf_h */ |