27 lines
719 B
Diff
27 lines
719 B
Diff
|
--- src/ne_openssl.c.orig
|
||
|
+++ src/ne_openssl.c
|
||
|
@@ -35,6 +35,7 @@
|
||
|
#include <openssl/x509v3.h>
|
||
|
#include <openssl/rand.h>
|
||
|
#include <openssl/opensslv.h>
|
||
|
+#include <openssl/engine.h>
|
||
|
|
||
|
#ifdef NE_HAVE_TS_SSL
|
||
|
#include <stdlib.h> /* for abort() */
|
||
|
@@ -1132,11 +1133,15 @@ static void thread_lock_neon(int mode, i
|
||
|
|
||
|
int ne__ssl_init(void)
|
||
|
{
|
||
|
+ OPENSSL_config(NULL);
|
||
|
CRYPTO_malloc_init();
|
||
|
SSL_load_error_strings();
|
||
|
SSL_library_init();
|
||
|
+ ENGINE_load_builtin_engines();
|
||
|
+ ENGINE_register_all_complete();
|
||
|
OpenSSL_add_all_algorithms();
|
||
|
|
||
|
+
|
||
|
#ifdef NE_HAVE_TS_SSL
|
||
|
/* If some other library has already come along and set up the
|
||
|
* thread-safety callbacks, then it must be presumed that the
|