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();