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

/* System library. */

#include <sys_defs.h>

/* Utility library. */

#include <mymalloc.h>
#include <dict_proxy.h>

/* Application-specific. */

#include "mkmap.h"

/* mkmap_proxy_open - create or open database */

MKMAP  *mkmap_proxy_open(const char *unused_path)
{
    MKMAP *mkmap = (MKMAP *) mymalloc(sizeof(*mkmap));

    /*
     * Fill in the generic members.
     */
    mkmap->open = dict_proxy_open;
    mkmap->after_open = 0;
    mkmap->after_close = 0;

    return (mkmap);
}