]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
lib/nettle: get rid of _rnd_system_entropy_check
authorAlexander Sosedkin <asosedkin@redhat.com>
Mon, 8 Mar 2021 13:56:32 +0000 (14:56 +0100)
committerAlexander Sosedkin <asosedkin@redhat.com>
Mon, 8 Mar 2021 14:20:42 +0000 (15:20 +0100)
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
lib/nettle/rnd-common.h
lib/nettle/sysrng-bcrypt.c
lib/nettle/sysrng-getentropy.c
lib/nettle/sysrng-linux.c
lib/nettle/sysrng-netbsd.c
lib/nettle/sysrng-windows.c
tests/rng-sigint.c

index 429ca017d3689c2afb3819a1bfd3e3c446cfe12a..025fe02e8fffa6a4db1ce2bd202d45c14db0a825 100644 (file)
@@ -35,7 +35,6 @@
 #include <fips.h>
 
 int _rnd_system_entropy_init(void);
-int _rnd_system_entropy_check(void);
 void _rnd_system_entropy_deinit(void);
 
 typedef int (*get_entropy_func)(void* rnd, size_t size);
index 10dc9ac83a13958b8c665922d83dab1580839334..a08e9deb925243d2d0689f34a5d1751a3c9076ab 100644 (file)
@@ -64,11 +64,6 @@ int _rnd_get_system_entropy_win32(void* rnd, size_t size)
        return 0;
 }
 
-int _rnd_system_entropy_check(void)
-{
-       return 0;
-}
-
 int _rnd_system_entropy_init(void)
 {
        NTSTATUS err = BCryptOpenAlgorithmProvider
index 99e95ead8bc963013f20097126e76646643f7335..0666d482c2c406bf3dab5e6678789cb5856afd92 100644 (file)
@@ -71,11 +71,6 @@ int _rnd_system_entropy_init(void)
        return 0;
 }
 
-int _rnd_system_entropy_check(void)
-{
-       return 0;
-}
-
 void _rnd_system_entropy_deinit(void)
 {
        return;
index 62024b121f784ca3c658fc04b8eb226a1dd96e71..6b3971c65f84b700b3a9be3771c1476232fd54ef 100644 (file)
@@ -159,12 +159,6 @@ static int _rnd_get_system_entropy_urandom(void* _rnd, size_t size)
        return 0;
 }
 
-int _rnd_system_entropy_check(void)
-{
-       /* A no-op now when we open and close /dev/urandom every time */
-       return 0;
-}
-
 int _rnd_system_entropy_init(void)
 {
        int urandom_fd;
index 7fb3d8d3261ec1b95157e01d8f4d50dfb930f16e..7f74b4eed4dc957566788463d945e2b6c7d4e7d4 100644 (file)
@@ -71,11 +71,6 @@ int _rnd_system_entropy_init(void)
        return 0;
 }
 
-int _rnd_system_entropy_check(void)
-{
-       return 0;
-}
-
 void _rnd_system_entropy_deinit(void)
 {
        return;
index 9d38e67ec13159ad51ffe7101ff4a715e0a76651..8c931d29cc2c4df7b5583b054b079c64f4a57b20 100644 (file)
@@ -64,11 +64,6 @@ int _rnd_get_system_entropy_win32(void* rnd, size_t size)
        return 0;
 }
 
-int _rnd_system_entropy_check(void)
-{
-       return 0;
-}
-
 int _rnd_system_entropy_init(void)
 {
        if (!CryptAcquireContext
index 76b76f353c58feeb640672f53d0b252e12a41bc4..04e818ede90bc7e4e65a3637b94df0b87ac9f5e1 100644 (file)
@@ -44,7 +44,6 @@
 #define gnutls_assert_val(val) val
 
 int _rnd_system_entropy_init(void);
-int _rnd_system_entropy_check(void);
 void _rnd_system_entropy_deinit(void);
 
 typedef int (*get_entropy_func)(void* rnd, size_t size);