void smtp_tls_policy_cache_flush(void) { if (policy_cache != 0) { ctable_free(policy_cache); policy_cache = 0; } }
void smtpd_resolve_init(int cache_size) { /* * Flush a pre-existing cache. The smtpd_check test program requires this * after an address class change. */ if (smtpd_resolve_cache) ctable_free(smtpd_resolve_cache); /* * Initialize the resolved address cache. Note: the cache persists across * SMTP sessions so we cannot make it dependent on session state. */ smtpd_resolve_cache = ctable_create(cache_size, resolve_pagein, resolve_pageout, (void *) 0); }