~ubuntu-branches/ubuntu/vivid/postfix/vivid-proposed

« back to all changes in this revision

Viewing changes to src/global/server_acl.h

  • Committer: Package Import Robot
  • Author(s): LaMont Jones
  • Date: 2012-03-20 13:47:16 UTC
  • mfrom: (1.1.33)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: package-import@ubuntu.com-20120320134716-v7ab94fmor2z9pvp
Tags: upstream-2.9.1
ImportĀ upstreamĀ versionĀ 2.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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