mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-10 16:32:34 +08:00
9697f95b8f
This reverts commit 15d999759e
.
65 lines
1.6 KiB
C
65 lines
1.6 KiB
C
#ifndef _TLS_MGR_CLNT_H_INCLUDED_
|
|
#define _TLS_MGR_CLNT_H_INCLUDED_
|
|
|
|
/*++
|
|
* NAME
|
|
* tls_mgr 3h
|
|
* SUMMARY
|
|
* tlsmgr client interface
|
|
* SYNOPSIS
|
|
* #include <tls_mgr.h>
|
|
* DESCRIPTION
|
|
* .nf
|
|
|
|
*
|
|
* TLS manager protocol.
|
|
*/
|
|
#include "lib_acl.h"
|
|
|
|
#define TLS_MGR_SERVICE "tlsmgr"
|
|
#define TLS_MGR_CLASS "private"
|
|
|
|
#define TLS_MGR_ATTR_REQ "request"
|
|
#define TLS_MGR_REQ_SEED "seed"
|
|
#define TLS_MGR_REQ_POLICY "policy"
|
|
#define TLS_MGR_REQ_LOOKUP "lookup"
|
|
#define TLS_MGR_REQ_UPDATE "update"
|
|
#define TLS_MGR_REQ_DELETE "delete"
|
|
#define TLS_MGR_ATTR_CACHABLE "cachable"
|
|
#define TLS_MGR_ATTR_CACHE_TYPE "cache_type"
|
|
#define TLS_MGR_ATTR_SEED "seed"
|
|
#define TLS_MGR_ATTR_CACHE_ID "cache_id"
|
|
#define TLS_MGR_ATTR_SESSION "session"
|
|
#define TLS_MGR_ATTR_SIZE "size"
|
|
#define TLS_MGR_ATTR_STATUS "status"
|
|
|
|
/*
|
|
* TLS manager request status codes.
|
|
*/
|
|
#define TLS_MGR_STAT_OK 0 /* success */
|
|
#define TLS_MGR_STAT_ERR (-1) /* object not found */
|
|
#define TLS_MGR_STAT_FAIL (-2) /* protocol error */
|
|
|
|
/*
|
|
* Functional interface.
|
|
*/
|
|
extern void tls_mgr_open(ACL_EVENT *eventp);
|
|
extern int tls_mgr_seed(ACL_VSTRING *, int);
|
|
extern int tls_mgr_policy(const char *, int *);
|
|
extern int tls_mgr_lookup(const char *, const char *, ACL_VSTRING *);
|
|
extern int tls_mgr_update(const char *, const char *, const char *, ssize_t);
|
|
extern int tls_mgr_delete(const char *, const char *);
|
|
|
|
/* 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
|
|
*--*/
|
|
|
|
#endif
|