Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / tls / tls_mgr.h
blobdf2868f20c3f386cc31bde3982e2f57ce70a1b85
1 /* $NetBSD$ */
3 #ifndef _TLS_MGR_CLNT_H_INCLUDED_
4 #define _TLS_MGR_CLNT_H_INCLUDED_
6 /*++
7 /* NAME
8 /* tls_mgr 3h
9 /* SUMMARY
10 /* tlsmgr client interface
11 /* SYNOPSIS
12 /* #include <tls_mgr.h>
13 /* DESCRIPTION
14 /* .nf
17 * TLS manager protocol.
19 #define TLS_MGR_SERVICE "tlsmgr"
20 #define TLS_MGR_CLASS "private"
22 #define TLS_MGR_ATTR_REQ "request"
23 #define TLS_MGR_REQ_SEED "seed"
24 #define TLS_MGR_REQ_POLICY "policy"
25 #define TLS_MGR_REQ_LOOKUP "lookup"
26 #define TLS_MGR_REQ_UPDATE "update"
27 #define TLS_MGR_REQ_DELETE "delete"
28 #define TLS_MGR_ATTR_CACHABLE "cachable"
29 #define TLS_MGR_ATTR_CACHE_TYPE "cache_type"
30 #define TLS_MGR_ATTR_SEED "seed"
31 #define TLS_MGR_ATTR_CACHE_ID "cache_id"
32 #define TLS_MGR_ATTR_SESSION "session"
33 #define TLS_MGR_ATTR_SIZE "size"
34 #define TLS_MGR_ATTR_STATUS "status"
37 * TLS manager request status codes.
39 #define TLS_MGR_STAT_OK 0 /* success */
40 #define TLS_MGR_STAT_ERR (-1) /* object not found */
41 #define TLS_MGR_STAT_FAIL (-2) /* protocol error */
44 * Functional interface.
46 extern int tls_mgr_seed(VSTRING *, int);
47 extern int tls_mgr_policy(const char *, int *);
48 extern int tls_mgr_lookup(const char *, const char *, VSTRING *);
49 extern int tls_mgr_update(const char *, const char *, const char *, ssize_t);
50 extern int tls_mgr_delete(const char *, const char *);
52 /* LICENSE
53 /* .ad
54 /* .fi
55 /* The Secure Mailer license must be distributed with this software.
56 /* AUTHOR(S)
57 /* Wietse Venema
58 /* IBM T.J. Watson Research
59 /* P.O. Box 704
60 /* Yorktown Heights, NY 10598, USA
61 /*--*/
63 #endif