master_service_ssl_ctx_init() is called only once at startup, so there is no
need to support calling it multiple times.
bool config_path_changed_with_param:1;
bool have_admin_sockets:1;
bool want_ssl_server:1;
- bool ssl_ctx_initialized:1;
bool config_path_from_master:1;
bool log_initialized:1;
bool init_finished:1;
const struct ssl_iostream_settings *ssl_set;
const char *error;
- if (service->ssl_ctx_initialized)
- return;
- service->ssl_ctx_initialized = TRUE;
-
/* must be called after master_service_init_finish() so that if
initialization fails we can close the SSL listeners */
i_assert(service->listeners != NULL || service->socket_count == 0);
{
if (service->ssl_ctx != NULL)
ssl_iostream_context_unref(&service->ssl_ctx);
- service->ssl_ctx_initialized = FALSE;
}