dict_proxy.h revision 1.3
1/* $NetBSD: dict_proxy.h,v 1.3 2023/12/23 20:30:43 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#include <mkmap.h> 21 22 /* 23 * External interface. 24 */ 25#define DICT_TYPE_PROXY "proxy" 26 27extern DICT *dict_proxy_open(const char *, int, int); 28extern MKMAP *mkmap_proxy_open(const char *); 29 30 /* 31 * Protocol interface. 32 */ 33#define PROXY_REQ_OPEN "open" 34#define PROXY_REQ_LOOKUP "lookup" 35#define PROXY_REQ_UPDATE "update" 36#define PROXY_REQ_DELETE "delete" 37#define PROXY_REQ_SEQUENCE "sequence" 38 39#define PROXY_STAT_OK 0 /* operation succeeded */ 40#define PROXY_STAT_NOKEY 1 /* requested key not found */ 41#define PROXY_STAT_RETRY 2 /* try lookup again later */ 42#define PROXY_STAT_BAD 3 /* invalid request parameter */ 43#define PROXY_STAT_DENY 4 /* table not approved for proxying */ 44#define PROXY_STAT_CONFIG 5 /* DICT_ERR_CONFIG error */ 45 46/* LICENSE 47/* .ad 48/* .fi 49/* The Secure Mailer license must be distributed with this software. 50/* AUTHOR(S) 51/* Wietse Venema 52/* IBM T.J. Watson Research 53/* P.O. Box 704 54/* Yorktown Heights, NY 10598, USA 55/* 56/* Wietse Venema 57/* Google, Inc. 58/* 111 8th Avenue 59/* New York, NY 10011, USA 60/*--*/ 61 62#endif 63