[openssl] OpenSSL_1_1_1-stable update
bernd.edlinger at hotmail.de
bernd.edlinger at hotmail.de
Thu Sep 5 06:27:02 UTC 2019
The branch OpenSSL_1_1_1-stable has been updated
via aa24cc01957f813beb5329c26ae581fe6b7482a7 (commit)
from fb6a82c498b895c5d92a59d0b1737d37da98cefc (commit)
- Log -----------------------------------------------------------------
commit aa24cc01957f813beb5329c26ae581fe6b7482a7
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date: Wed Sep 4 11:50:54 2019 +0200
Remove ifndef FIPS_MODE from rand_unix.c
This will never be the case for 1.1.1 so removed.
Fixes: comment 1 of #9757
Reviewed-by: Matt Caswell <matt at openssl.org>
Reviewed-by: Paul Dale <paul.dale at oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9762)
-----------------------------------------------------------------------
Summary of changes:
crypto/rand/rand_unix.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/crypto/rand/rand_unix.c b/crypto/rand/rand_unix.c
index e57b6dd893..d118360366 100644
--- a/crypto/rand/rand_unix.c
+++ b/crypto/rand/rand_unix.c
@@ -364,12 +364,10 @@ static int keep_random_devices_open = 1;
# if defined(__linux) && defined(DEVRANDOM_WAIT)
static void *shm_addr;
-# if !defined(FIPS_MODE)
static void cleanup_shm(void)
{
shmdt(shm_addr);
}
-# endif
/*
* Ensure that the system randomness source has been adequately seeded.
@@ -435,11 +433,8 @@ static int wait_random_seeded(void)
* If this call fails, it isn't a big problem.
*/
shm_addr = shmat(shm_id, NULL, SHM_RDONLY);
-# ifndef FIPS_MODE
- /* TODO 3.0: The FIPS provider doesn't have OPENSSL_atexit */
if (shm_addr != (void *)-1)
OPENSSL_atexit(&cleanup_shm);
-# endif
}
}
return seeded;
More information about the openssl-commits
mailing list