mirror of
https://repo.or.cz/socat.git
synced 2025-07-29 13:42:58 +00:00
Use RAND_status to determine PRNG state
This commit is contained in:
parent
d5b87cea87
commit
7da1766048
4 changed files with 9 additions and 0 deletions
|
@ -1123,6 +1123,8 @@ static int openssl_SSL_ERROR_SSL(int level, const char *funcname) {
|
|||
(
|
||||
#if defined(OPENSSL_IS_BORINGSSL)
|
||||
0 /* BoringSSL's RNG always succeeds. */
|
||||
#elif defined(HAVE_RAND_status)
|
||||
ERR_GET_LIB(e) == ERR_LIB_RAND && RAND_status() != 1
|
||||
#else
|
||||
e == ((ERR_LIB_RAND<<24)|
|
||||
#if defined(RAND_F_RAND_BYTES)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue