1 #ifndef _DICT_PROXY_H_INCLUDED_ 2 #define _DICT_PROXY_H_INCLUDED_ 3 4 /*++ 5 /* NAME 6 /* dict_proxy 3h 7 /* SUMMARY 8 /* dictionary manager interface to PROXY maps 9 /* SYNOPSIS 10 /* #include <dict_proxy.h> 11 /* DESCRIPTION 12 /* .nf 13 14 /* 15 * Utility library. 16 */ 17 #include <dict.h> 18 19 /* 20 * External interface. 21 */ 22 #define DICT_TYPE_PROXY "proxy" 23 24 extern DICT *dict_proxy_open(const char *, int, int); 25 26 /* 27 * Protocol interface. 28 */ 29 #define PROXY_REQ_OPEN "open" 30 #define PROXY_REQ_LOOKUP "lookup" 31 #define PROXY_REQ_UPDATE "update" 32 #define PROXY_REQ_DELETE "delete" 33 #define PROXY_REQ_SEQUENCE "sequence" 34 35 #define PROXY_STAT_OK 0 /* operation succeeded */ 36 #define PROXY_STAT_NOKEY 1 /* requested key not found */ 37 #define PROXY_STAT_RETRY 2 /* try lookup again later */ 38 #define PROXY_STAT_BAD 3 /* invalid request parameter */ 39 #define PROXY_STAT_DENY 4 /* table not approved for proxying */ 40 #define PROXY_STAT_CONFIG 5 /* DICT_ERR_CONFIG error */ 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