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