From: Aki Tuomi Date: Thu, 7 Sep 2017 07:19:36 +0000 (+0300) Subject: lib-ssl-iostream: Expose ssl_module_load X-Git-Tag: 2.3.0.rc1~679 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=997b30e4099704d2dbe3402b890a892b71b1d640;p=thirdparty%2Fdovecot%2Fcore.git lib-ssl-iostream: Expose ssl_module_load We need to load SSL module before we chroot in login-common. --- diff --git a/src/lib-ssl-iostream/iostream-ssl.c b/src/lib-ssl-iostream/iostream-ssl.c index 71f3c9945f..1391b1e239 100644 --- a/src/lib-ssl-iostream/iostream-ssl.c +++ b/src/lib-ssl-iostream/iostream-ssl.c @@ -24,7 +24,7 @@ void iostream_ssl_module_init(const struct iostream_ssl_vfuncs *vfuncs) ssl_module_loaded = TRUE; } -static int ssl_module_load(const char **error_r) +int ssl_module_load(const char **error_r) { #ifdef HAVE_SSL const char *plugin_name = "ssl_iostream_openssl"; diff --git a/src/lib-ssl-iostream/iostream-ssl.h b/src/lib-ssl-iostream/iostream-ssl.h index 36a8c5caff..50b6e8de40 100644 --- a/src/lib-ssl-iostream/iostream-ssl.h +++ b/src/lib-ssl-iostream/iostream-ssl.h @@ -32,6 +32,9 @@ struct ssl_iostream_settings { bool tickets; }; +/* Load SSL module */ +int ssl_module_load(const char **error_r); + /* Returns 0 if ok, -1 and sets error_r if failed. The returned error string becomes available via ssl_iostream_get_last_error() */ typedef int