commit | b21122994cbf6f7657ff8d40c028c300a70e209e | [log] [tgz] |
---|---|---|
author | Marek Kochanowicz <mako@grapeup.com> | Mon Oct 13 07:32:32 2014 +0200 |
committer | Andy Green <andy.green@linaro.org> | Wed Oct 22 15:37:58 2014 +0800 |
tree | 22842d39dd711e05394514428ad4f6f5b0379ffd | |
parent | 1cea5816fade21e3e29967c2f10d8c26739301c3 [diff] |
Subject: [PATCH] Initialize openssl during client initialization.
diff --git a/lib/ssl.c b/lib/ssl.c index ab63239..7bec931 100644 --- a/lib/ssl.c +++ b/lib/ssl.c
@@ -249,6 +249,13 @@ if (info->port != CONTEXT_PORT_NO_LISTEN) return 0; + /* basic openssl init */ + + SSL_library_init(); + + OpenSSL_add_all_algorithms(); + SSL_load_error_strings(); + method = (SSL_METHOD *)SSLv23_client_method(); if (!method) { error = ERR_get_error();