Skip to content

Commit

Permalink
lib-ssl-iostream: Expose ssl_module_load
Browse files Browse the repository at this point in the history
We need to load SSL module before we chroot in
login-common.
  • Loading branch information
cmouse authored and Timo Sirainen committed Oct 31, 2017
1 parent c141f36 commit 997b30e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-ssl-iostream/iostream-ssl.c
Expand Up @@ -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";
Expand Down
3 changes: 3 additions & 0 deletions src/lib-ssl-iostream/iostream-ssl.h
Expand Up @@ -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
Expand Down

0 comments on commit 997b30e

Please sign in to comment.