mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Fix build on CentOS 7
This commit is contained in:
parent
8786f5ab1d
commit
6182acd198
1 changed files with 5 additions and 5 deletions
|
@ -89,14 +89,14 @@ int perftools_profile = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||||
namespace
|
|
||||||
{
|
|
||||||
|
|
||||||
struct CRYPTO_dynlock_value
|
struct CRYPTO_dynlock_value
|
||||||
{
|
{
|
||||||
std::mutex mtx;
|
std::mutex mtx;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
namespace
|
||||||
|
{
|
||||||
|
|
||||||
std::unique_ptr<std::mutex[]> ssl_mtx_tbl;
|
std::unique_ptr<std::mutex[]> ssl_mtx_tbl;
|
||||||
|
|
||||||
void ssl_lock_fn(int mode, int n, const char*, int)
|
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));
|
// DEBUG_MSG("HMAC key: %s\n", md5_digest_print(shared_hmac_md5_key));
|
||||||
init_hash_function();
|
init_hash_function();
|
||||||
|
|
||||||
do_ssl_init();
|
do_ssl_init();
|
||||||
|
|
||||||
// FIXME: On systems that don't provide /dev/urandom, OpenSSL doesn't
|
// 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
|
// 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();
|
sqlite3_shutdown();
|
||||||
|
|
||||||
do_ssl_deinit();
|
do_ssl_deinit();
|
||||||
|
|
||||||
// Close files after net_delete(), because net_delete()
|
// Close files after net_delete(), because net_delete()
|
||||||
// might write to connection content files.
|
// might write to connection content files.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue