1/* $NetBSD: mkmap_proxy.c,v 1.2 2023/12/23 20:30:43 christos Exp $ */ 2 3/*++ 4/* NAME 5/* mkmap_proxy 3 6/* SUMMARY 7/* create or proxied database 8/* SYNOPSIS 9/* #include <dict_proxy.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/* Wietse Venema 33/* Google, Inc. 34/* 111 8th Avenue 35/* New York, NY 10011, USA 36/*--*/ 37 38/* System library. */ 39 40#include <sys_defs.h> 41 42/* Utility library. */ 43 44#include <mymalloc.h> 45#include <dict_proxy.h> 46 47/* mkmap_proxy_open - create or open database */ 48 49MKMAP *mkmap_proxy_open(const char *unused_path) 50{ 51 MKMAP *mkmap = (MKMAP *) mymalloc(sizeof(*mkmap)); 52 53 /* 54 * Fill in the generic members. 55 */ 56 mkmap->open = dict_proxy_open; 57 mkmap->after_open = 0; 58 mkmap->after_close = 0; 59 60 return (mkmap); 61} 62