mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-02-15 22:31:29 +01:00
BUILD: SSL: add BoringSSL guarding to "RAND_keep_random_devices_open"
"RAND_keep_random_devices_open" is OpenSSL specific, does not present in other OpenSSL variants like LibreSSL or BoringSSL. BoringSSL recently "updated" its internal openssl version to 1.1.1, we temporarily set it back to 1.1.0, as we are going to remove that hack, let us add proper guarding.
This commit is contained in:
parent
f04a89c549
commit
d9a16dc0f2
@ -783,7 +783,7 @@ void mworker_reload()
|
||||
if (fdtab)
|
||||
deinit_pollers();
|
||||
}
|
||||
#if defined(USE_OPENSSL) && (HA_OPENSSL_VERSION_NUMBER >= 0x10101000L)
|
||||
#if defined(USE_OPENSSL) && (HA_OPENSSL_VERSION_NUMBER >= 0x10101000L) && !defined(OPENSSL_IS_BORINGSSL)
|
||||
/* close random device FDs */
|
||||
RAND_keep_random_devices_open(0);
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user