/*++ /* NAME /* tls_mgr 3 /* SUMMARY /* tlsmgr client interface /* SYNOPSIS /* #include <tls_mgr.h> /* /* int tls_mgr_seed(buf, len) /* VSTRING *buf; /* int len; /* /* int tls_mgr_policy(cache_type, cachable, timeout) /* const char *cache_type; /* int *cachable; /* int *timeout; /* /* int tls_mgr_update(cache_type, cache_id, buf, len) /* const char *cache_type; /* const char *cache_id; /* const char *buf; /* ssize_t len; /* /* int tls_mgr_lookup(cache_type, cache_id, buf) /* const char *cache_type; /* const char *cache_id; /* VSTRING *buf; /* /* int tls_mgr_delete(cache_type, cache_id) /* const char *cache_type; /* const char *cache_id; /* /* TLS_TICKET_KEY *tls_mgr_key(keyname, timeout) /* unsigned char *keyname; /* int timeout; /* DESCRIPTION /* These routines communicate with the tlsmgr(8) server for /* entropy and session cache management. Since these are /* non-critical services, requests are allowed to fail without /* disrupting Postfix. /* /* tls_mgr_seed() requests entropy from the tlsmgr(8) /* Pseudo Random Number Generator (PRNG) pool. /* /* tls_mgr_policy() requests the session caching policy. /* /* tls_mgr_lookup() loads the specified session from /* the specified session cache. /* /* tls_mgr_update() saves the specified session to /* the specified session cache. /* /* tls_mgr_delete() removes specified session from /* the specified session cache. /* /* tls_mgr_key() is used to retrieve the current TLS session ticket /* encryption or decryption keys. /* /* Arguments: /* .IP cache_type /* One of TLS_MGR_SCACHE_SMTPD, TLS_MGR_SCACHE_SMTP or /* TLS_MGR_SCACHE_LMTP. /* .IP cachable /* Pointer to int, set non-zero if the requested cache_type /* is enabled. /* .IP timeout /* Pointer to int, returns the cache entry timeout. /* .IP cache_id /* The session cache lookup key. /* .IP buf /* The result or input buffer. /* .IP len /* The length of the input buffer, or the amount of data requested. /* .IP keyname /* Is null when requesting the current encryption keys. Otherwise, /* keyname is a pointer to an array of TLS_TICKET_NAMELEN unsigned /* chars (not NUL terminated) that is an identifier for a key /* previously used to encrypt a session ticket. When encrypting /* a null result indicates that session tickets are not supported, when /* decrypting it indicates that no matching keys were found. /* .IP timeout /* The encryption key timeout. Once a key has been active for this many /* seconds it is retired and used only for decrypting previously issued /* session tickets for another timeout seconds, and is then destroyed. /* The timeout must not be longer than half the SSL session lifetime. /* DIAGNOSTICS /* All client functions return one of the following status codes: /* .IP TLS_MGR_STAT_OK /* The request completed, and the requested operation was /* successful (for example, the requested session was found, /* or the specified session was saved or removed). /* .IP TLS_MGR_STAT_ERR /* The request completed, but the requested operation failed /* (for example, the requested object was not found or the /* specified session was not saved or removed). /* .IP TLS_MGR_STAT_FAIL /* The request could not complete (the client could not /* communicate with the tlsmgr(8) server). /* SEE ALSO /* tlsmgr(8) TLS session and PRNG management /* 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 /* /* Wietse Venema /* Google, Inc. /* 111 8th Avenue /* New York, NY 10011, USA
/*--*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.