From 6182acd198f5d8e281ca810b05da15997c3d62fe Mon Sep 17 00:00:00 2001 From: Dominik Charousset Date: Thu, 28 Apr 2022 19:37:11 +0200 Subject: [PATCH] Fix build on CentOS 7 --- src/zeek-setup.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/zeek-setup.cc b/src/zeek-setup.cc index 6a5701e20b..7a6b048571 100644 --- a/src/zeek-setup.cc +++ b/src/zeek-setup.cc @@ -89,14 +89,14 @@ int perftools_profile = 0; #endif #if OPENSSL_VERSION_NUMBER < 0x10100000L -namespace - { - struct CRYPTO_dynlock_value { std::mutex mtx; }; +namespace + { + std::unique_ptr ssl_mtx_tbl; void ssl_lock_fn(int mode, int n, const char*, int) @@ -627,7 +627,7 @@ SetupResult setup(int argc, char** argv, Options* zopts) // DEBUG_MSG("HMAC key: %s\n", md5_digest_print(shared_hmac_md5_key)); init_hash_function(); - do_ssl_init(); + do_ssl_init(); // FIXME: On systems that don't provide /dev/urandom, OpenSSL doesn't // seed the PRNG. We should do this here (but at least Linux, FreeBSD @@ -1070,7 +1070,7 @@ int cleanup(bool did_run_loop) sqlite3_shutdown(); - do_ssl_deinit(); + do_ssl_deinit(); // Close files after net_delete(), because net_delete() // might write to connection content files.