dict_proxy.h revision 1.2
1/* $NetBSD: dict_proxy.h,v 1.2 2017/02/14 01:16:45 christos 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 26extern 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#define PROXY_REQ_SEQUENCE "sequence" 36 37#define PROXY_STAT_OK 0 /* operation succeeded */ 38#define PROXY_STAT_NOKEY 1 /* requested key not found */ 39#define PROXY_STAT_RETRY 2 /* try lookup again later */ 40#define PROXY_STAT_BAD 3 /* invalid request parameter */ 41#define PROXY_STAT_DENY 4 /* table not approved for proxying */ 42#define PROXY_STAT_CONFIG 5 /* DICT_ERR_CONFIG error */ 43 44/* LICENSE 45/* .ad 46/* .fi 47/* The Secure Mailer license must be distributed with this software. 48/* AUTHOR(S) 49/* Wietse Venema 50/* IBM T.J. Watson Research 51/* P.O. Box 704 52/* Yorktown Heights, NY 10598, USA 53/*--*/ 54 55#endif 56