From 997b30e4099704d2dbe3402b890a892b71b1d640 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Thu, 7 Sep 2017 10:19:36 +0300 Subject: [PATCH] lib-ssl-iostream: Expose ssl_module_load We need to load SSL module before we chroot in login-common. --- src/lib-ssl-iostream/iostream-ssl.c | 2 +- src/lib-ssl-iostream/iostream-ssl.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- 2.47.3