You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/util.cpp
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,7 @@
83
83
#include<boost/thread.hpp>
84
84
#include<openssl/crypto.h>
85
85
#include<openssl/rand.h>
86
+
#include<openssl/conf.h>
86
87
87
88
// Work around clang compilation problem in Boost 1.46:
88
89
// /usr/include/boost/program_options/detail/config_file.hpp:163:17: error: call to function 'to_internal' that is neither visible in the template definition nor found by argument-dependent lookup
@@ -134,6 +135,13 @@ class CInit
134
135
ppmutexOpenSSL[i] = newCCriticalSection();
135
136
CRYPTO_set_locking_callback(locking_callback);
136
137
138
+
// OpenSSL can optionally load a config file which lists optional loadable modules and engines.
139
+
// We don't use them so we don't require the config. However some of our libs may call functions
140
+
// which attempt to load the config file, possibly resulting in an exit() or crash if it is missing
141
+
// or corrupt. Explicitly tell OpenSSL not to try to load the file. The result for our libs will be
142
+
// that the config appears to have been loaded and there are no modules/engines available.
143
+
OPENSSL_no_config();
144
+
137
145
#ifdef WIN32
138
146
// Seed OpenSSL PRNG with current contents of the screen
0 commit comments