Postfix3.3.1
server_acl.h
[詳解]
1 #ifndef _SERVER_ACL_INCLUDED_
2 #define _SERVER_ACL_INCLUDED_
3 
4 /*++
5 /* NAME
6 /* dict_memcache 3h
7 /* SUMMARY
8 /* dictionary interface to memcache databases
9 /* SYNOPSIS
10 /* #include <dict_memcache.h>
11 /* DESCRIPTION
12 /* .nf
13 
14  /*
15  * Utility library.
16  */
17 #include <argv.h>
18 
19  /*
20  * External interface.
21  */
22 typedef ARGV SERVER_ACL;
23 extern void server_acl_pre_jail_init(const char *, const char *);
24 extern SERVER_ACL *server_acl_parse(const char *, const char *);
25 extern int server_acl_eval(const char *, SERVER_ACL *, const char *);
26 
27 #define SERVER_ACL_NAME_WL_MYNETWORKS "permit_mynetworks"
28 #define SERVER_ACL_NAME_PERMIT "permit"
29 #define SERVER_ACL_NAME_DUNNO "dunno"
30 #define SERVER_ACL_NAME_REJECT "reject"
31 #define SERVER_ACL_NAME_ERROR "error"
32 
33 #define SERVER_ACL_ACT_PERMIT 1
34 #define SERVER_ACL_ACT_DUNNO 0
35 #define SERVER_ACL_ACT_REJECT (-1)
36 #define SERVER_ACL_ACT_ERROR (-2)
37 
38 /* LICENSE
39 /* .ad
40 /* .fi
41 /* The Secure Mailer license must be distributed with this software.
42 /* AUTHOR(S)
43 /* Wietse Venema
44 /* IBM T.J. Watson Research
45 /* P.O. Box 704
46 /* Yorktown Heights, NY 10598, USA
47 /*--*/
48 
49 #endif
ARGV SERVER_ACL
Definition: server_acl.h:22
Definition: argv.h:17
void server_acl_pre_jail_init(const char *, const char *)
Definition: server_acl.c:97
SERVER_ACL * server_acl_parse(const char *, const char *)
Definition: server_acl.c:115
int server_acl_eval(const char *, SERVER_ACL *, const char *)
Definition: server_acl.c:158