1 /* $NetBSD: tls_mgr.h,v 1.1.1.1 2009/06/23 10:08:57 tron Exp $ */ 2 3 #ifndef _TLS_MGR_CLNT_H_INCLUDED_ 4 #define _TLS_MGR_CLNT_H_INCLUDED_ 5 6 /*++ 7 /* NAME 8 /* tls_mgr 3h 9 /* SUMMARY 10 /* tlsmgr client interface 11 /* SYNOPSIS 12 /* #include <tls_mgr.h> 13 /* DESCRIPTION 14 /* .nf 15 16 /* 17 * TLS manager protocol. 18 */ 19 #define TLS_MGR_SERVICE "tlsmgr" 20 #define TLS_MGR_CLASS "private" 21 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" 35 36 /* 37 * TLS manager request status codes. 38 */ 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 */ 42 43 /* 44 * Functional interface. 45 */ 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 *); 51 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 /*--*/ 62 63 #endif 64