| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
#ifndef _host_h |
| 27 |
#define _host_h |
| 28 |
|
| 29 |
#ifdef HAVE_CONFIG_H |
| 30 |
#include "config.h" |
| 31 |
#endif |
| 32 |
#include "buffer.h" |
| 33 |
|
| 34 |
#ifdef AUTH |
| 35 |
|
| 36 |
#define HOST_EXPR_SIZE 1024 |
| 37 |
#define HOST_READ 'r' |
| 38 |
#define HOST_WRITE 'w' |
| 39 |
#define HOST_EXECUTE 'x' |
| 40 |
#define HOST_MONITOR 'm' |
| 41 |
#define HOST_DEFAULT_ACCESS "rx" |
| 42 |
|
| 43 |
extern BUFFER *host_list; |
| 44 |
|
| 45 |
#ifdef __STDC__ |
| 46 |
extern void host_read (char *filename); |
| 47 |
extern void host_reread (char *filename); |
| 48 |
extern void host_stat (char *filename); |
| 49 |
extern char *host_ip_to_regex (char *ip_addr); |
| 50 |
extern int host_access (struct sockaddr_in sin, char access_mode); |
| 51 |
extern void host_insert (char *expr_read, char *expr_write, char *expr_execute, |
| 52 |
char *expr_monitor, char *name, char *perms); |
| 53 |
#else |
| 54 |
extern void host_read ( ); |
| 55 |
extern void host_reread ( ); |
| 56 |
extern void host_stat ( ); |
| 57 |
extern char *host_ip_to_regex ( ); |
| 58 |
extern int host_access ( ); |
| 59 |
extern void host_insert (); |
| 60 |
#endif |
| 61 |
|
| 62 |
#endif |
| 63 |
|
| 64 |
#endif |