Skip to main content

Name

outbound_tls_verify

Synopsis

#include "hooks/core/outbound_tls_verify.h"

| int **outbound_tls_verify** ( | closure, |   | |   | message); |   |

void * <var class="pdparam">closure</var>; email_message * <var class="pdparam">message</var>;

| int **has_core_outbound_tls_verify_hook** ( | ); |   |

| void **register_core_outbound_tls_verify_hook_first** ( | hook, |   | |   | closure); |   |

ec_hook_core_outbound_tls_verify_func_t <var class="pdparam">hook</var>; void *<var class="pdparam">closure</var>;

| void **register_core_outbound_tls_verify_hook_last** ( | hook, |   | |   | closure); |   |

ec_hook_core_outbound_tls_verify_func_t <var class="pdparam">hook</var>; void *<var class="pdparam">closure</var>;

| int **call_core_outbound_tls_verify_hook** ( | message); |   |

email_message * <var class="pdparam">message</var>;

Description

outbound_tls_verify is called from within the SMTP delivery state machine to ascertain how the TLS certificate should be verified for the given message:

EC_SSL_VERIFY_VALIDCA

the certificate must only be signed by a valid certificate authority.

EC_SSL_VERIFY_HOSTNAME

the certificate must be signed by a valid certificate authority and the hostname presented must match the host to which we connected.

EC_SSL_VERIFY_NONE

No verification will be performed.

Was this page helpful?