We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 820605c commit 4282bacCopy full SHA for 4282bac
memtier_benchmark.cpp
@@ -34,6 +34,8 @@
34
#include <sys/resource.h>
35
36
#ifdef USE_TLS
37
+#include <openssl/crypto.h>
38
+#include <openssl/conf.h>
39
#include <openssl/ssl.h>
40
#include <openssl/err.h>
41
#include <openssl/rand.h>
@@ -1216,6 +1218,14 @@ static void init_openssl(void)
1216
1218
exit(1);
1217
1219
}
1220
1221
+ //Enable memtier benchmark to load an OpenSSL config file.
1222
+ #if OPENSSL_VERSION_NUMBER < 0x10100000L
1223
+ OPENSSL_config(NULL);
1224
+ #else
1225
+ OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL);
1226
+ #endif
1227
+
1228
1229
init_openssl_threads();
1230
1231
0 commit comments