1 /*	$NetBSD: dict_proxy.h,v 1.1.1.1 2009/06/23 10:08:45 tron Exp $	*/
2 
3 #ifndef _DICT_PROXY_H_INCLUDED_
4 #define _DICT_PROXY_H_INCLUDED_
5 
6 /*++
7 /* NAME
8 /*	dict_proxy 3h
9 /* SUMMARY
10 /*	dictionary manager interface to PROXY maps
11 /* SYNOPSIS
12 /*	#include <dict_proxy.h>
13 /* DESCRIPTION
14 /* .nf
15 
16  /*
17   * Utility library.
18   */
19 #include <dict.h>
20 
21  /*
22   * External interface.
23   */
24 #define DICT_TYPE_PROXY	"proxy"
25 
26 extern DICT *dict_proxy_open(const char *, int, int);
27 
28  /*
29   * Protocol interface.
30   */
31 #define PROXY_REQ_OPEN		"open"
32 #define PROXY_REQ_LOOKUP	"lookup"
33 #define PROXY_REQ_UPDATE	"update"
34 #define PROXY_REQ_DELETE	"delete"
35 
36 #define PROXY_STAT_OK		0	/* operation succeeded */
37 #define PROXY_STAT_NOKEY	1	/* requested key not found */
38 #define PROXY_STAT_RETRY	2	/* try lookup again later */
39 #define PROXY_STAT_BAD		3	/* invalid request parameter */
40 #define PROXY_STAT_DENY		4	/* table not approved for proxying */
41 
42 /* LICENSE
43 /* .ad
44 /* .fi
45 /*	The Secure Mailer license must be distributed with this software.
46 /* AUTHOR(S)
47 /*	Wietse Venema
48 /*	IBM T.J. Watson Research
49 /*	P.O. Box 704
50 /*	Yorktown Heights, NY 10598, USA
51 /*--*/
52 
53 #endif
54