/*++ /* NAME /* smtp_reuse 3 /* SUMMARY /* SMTP session cache glue /* SYNOPSIS /* #include <smtp.h> /* #include <smtp_reuse.h> /* /* void smtp_save_session(state, name_key_flags, endp_key_flags) /* SMTP_STATE *state; /* int name_key_flags; /* int endp_key_flags; /* /* SMTP_SESSION *smtp_reuse_nexthop(state, name_key_flags) /* SMTP_STATE *state; /* int name_key_flags; /* /* SMTP_SESSION *smtp_reuse_addr(state, endp_key_flags) /* SMTP_STATE *state; /* int endp_key_flags; /* DESCRIPTION /* This module implements the SMTP client specific interface to /* the generic session cache infrastructure. /* /* The caller needs to include additional state in _key_flags /* to avoid false sharing of SASL-authenticated or TLS-authenticated /* sessions. /* /* smtp_save_session() stores the current session under the /* delivery request next-hop logical destination (if applicable) /* and under the remote server address. The SMTP_SESSION object /* is destroyed. /* /* smtp_reuse_nexthop() looks up a cached session by its /* delivery request next-hop destination, and verifies that /* the session is still alive. The restored session information /* includes the "best MX" bit and overrides the iterator dest, /* host and addr fields. The result is null in case of failure. /* /* smtp_reuse_addr() looks up a cached session by its server /* address, and verifies that the session is still alive. /* The restored session information does not include the "best /* MX" bit, and does not override the iterator dest, host and /* addr fields. The result is null in case of failure. /* /* Arguments: /* .IP state /* SMTP client state, including the current session, the original /* next-hop domain, etc. /* .IP name_key_flags /* Explicit declaration of context that should be used to look /* up a cached connection by its logical destination. /* See smtp_key(3) for details. /* .IP endp_key_flags /* Explicit declaration of context that should be used to look /* up a cached connection by its server address. /* See smtp_key(3) for details. /* 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.