3 #ifndef _TLS_MGR_CLNT_H_INCLUDED_
4 #define _TLS_MGR_CLNT_H_INCLUDED_
10 /* tlsmgr client interface
12 /* #include <tls_mgr.h>
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 *);
55 /* The Secure Mailer license must be distributed with this software.
58 /* IBM T.J. Watson Research
60 /* Yorktown Heights, NY 10598, USA