1/* $NetBSD$ */ 2 3/*++ 4/* NAME 5/* mkmap_proxy 3 6/* SUMMARY 7/* create or proxied database 8/* SYNOPSIS 9/* #include <mkmap.h> 10/* 11/* MKMAP *mkmap_proxy_open(path) 12/* const char *path; 13/* DESCRIPTION 14/* This module implements support for updating proxy databases. 15/* 16/* mkmap_proxy_open() is a proxymap-specific helper for the 17/* more general mkmap_open() routine. 18/* 19/* All errors are fatal. 20/* SEE ALSO 21/* dict_proxy(3), proxy client interface. 22/* LICENSE 23/* .ad 24/* .fi 25/* The Secure Mailer license must be distributed with this software. 26/* AUTHOR(S) 27/* Wietse Venema 28/* IBM T.J. Watson Research 29/* P.O. Box 704 30/* Yorktown Heights, NY 10598, USA 31/*--*/ 32 33/* System library. */ 34 35#include <sys_defs.h> 36 37/* Utility library. */ 38 39#include <mymalloc.h> 40#include <dict_proxy.h> 41 42/* Application-specific. */ 43 44#include "mkmap.h" 45 46/* mkmap_proxy_open - create or open database */ 47 48MKMAP *mkmap_proxy_open(const char *unused_path) 49{ 50 MKMAP *mkmap = (MKMAP *) mymalloc(sizeof(*mkmap)); 51 52 /* 53 * Fill in the generic members. 54 */ 55 mkmap->open = dict_proxy_open; 56 mkmap->after_open = 0; 57 mkmap->after_close = 0; 58 59 return (mkmap); 60} 61