From 2610b3f8b620e2c6a6fe10507b88466cfb170d0d Mon Sep 17 00:00:00 2001
From: Dmitry Falko <dfalko@digiflak.com>
Date: Mon, 2 Jun 2014 13:44:55 +0400
Subject: [PATCH 25/25] Load of OpenSSL default config file

KNOWN_BUG #83 curl is unable to load non-default
openssl engines, because openssl isn't initialized
properly. Add OpenSSL_config(NULL) to initialize
OpenSSL properly.
---
 lib/vtls/openssl.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 0e9c8f0..d2bd5e0 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -730,6 +730,9 @@ int Curl_ossl_init(void)
 {
 #ifdef HAVE_ENGINE_LOAD_BUILTIN_ENGINES
   ENGINE_load_builtin_engines();
+
+  /* Load default OpenSSL config */
+  OPENSSL_config(NULL);
 #endif
 
   /* Lets get nice error messages */
-- 
1.7.9.5

