Curl_ossl_init: load builtin modules

To have engine modules work, we must tell openssl to load builtin
modules first.

Bug: https://github.com/bagder/curl/pull/206
This commit is contained in:
Daniel Stenberg 2015-04-26 17:26:31 +02:00
parent aa8f613e98
commit cae43a10cb
1 changed files with 2 additions and 0 deletions

View File

@ -751,6 +751,8 @@ static char *SSL_strerror(unsigned long error, char *buf, size_t size)
*/
int Curl_ossl_init(void)
{
OPENSSL_load_builtin_modules();
#ifdef HAVE_ENGINE_LOAD_BUILTIN_ENGINES
ENGINE_load_builtin_engines();
#endif