Curl_ossl_init: call OPENSSL_config for initing engines
authorDaniel Stenberg <daniel@haxx.se>
Tue, 3 Jun 2014 16:08:20 +0000 (18:08 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 3 Jun 2014 20:15:38 +0000 (22:15 +0200)
Bug: http://curl.haxx.se/mail/lib-2014-06/0003.html
Reported-by: Дмитрий Фалько
docs/INTERNALS
lib/vtls/openssl.c

index 05fa755..6bf3c92 100644 (file)
@@ -33,7 +33,7 @@ Portability
  want it to remain functional and buildable with these and later versions
  (older versions may still work but is not what we work hard to maintain):
 
- OpenSSL      0.9.6
+ OpenSSL      0.9.7
  GnuTLS       1.2
  zlib         1.1.4
  libssh2      0.16
index 0e9c8f0..c489600 100644 (file)
@@ -62,6 +62,7 @@
 #include <openssl/dh.h>
 #include <openssl/err.h>
 #include <openssl/md5.h>
+#include <openssl/conf.h>
 #else
 #include <rand.h>
 #include <x509v3.h>
@@ -740,6 +741,7 @@ int Curl_ossl_init(void)
     return 0;
 
   OpenSSL_add_all_algorithms();
+  OPENSSL_config(NULL);
 
   return 1;
 }