ze-filter  (ze-filter-0.8.0-develop-180218)
ze-dbpolicy.h
Go to the documentation of this file.
1 /*
2  *
3  * ze-filter - Mail Server Filter for sendmail
4  *
5  * Copyright (c) 2001-2018 - Jose-Marcio Martins da Cruz
6  *
7  * Auteur : Jose Marcio Martins da Cruz
8  * jose.marcio.mc@gmail.org
9  *
10  * Historique :
11  * Creation : janvier 2002
12  *
13  * This program is free software, but with restricted license :
14  *
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19  *
20  * More details about ze-filter license can be found at ze-filter
21  * web site : http://foss.jose-marcio.org
22  */
23 
24 #ifndef __ZE_DBPOLICY_H
25 
31 bool db_policy_open(bool);
32 bool db_policy_reopen();
33 bool db_policy_close();
34 bool db_policy_check(char *prefix, char *key, char *bufout,
35  size_t szbuf);
36 
37 bool db_policy_lookup(char *prefix, char *key, char *bufout,
38  size_t szbuf);
39 
40 #define DB_POLICY_EXACT 0
41 #define DB_POLICY_DOMAIN 1
42 #define DB_POLICY_TLD 2
43 #define DB_POLICY_NETCLASS 4
44 
45 #define DB_POLICY_RCPT 16
46 
47 bool db_policy_check_spec(char *prefix, char *key, char *bufout,
48  size_t szbuf, int32_t flags);
49 
50 
53 #define __ZE_DBPOLICY_H
54 #endif
bool db_policy_lookup(char *prefix, char *key, char *bufout, size_t szbuf)
Definition: ze-dbpolicy.c:370
bool db_policy_reopen()
Definition: ze-dbpolicy.c:82
bool db_policy_close()
Definition: ze-dbpolicy.c:105
bool db_policy_check_spec(char *prefix, char *key, char *bufout, size_t szbuf, int32_t flags)
bool db_policy_check(char *prefix, char *key, char *bufout, size_t szbuf)
Definition: ze-dbpolicy.c:141
bool db_policy_open(bool)
Definition: ze-dbpolicy.c:44