diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2021-12-07 10:10:25 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2021-12-07 10:10:25 +0900 |
commit | 754ad5815b5bb7462260414f2bc5f449bee0b1c6 (patch) | |
tree | ea656c8308269015e31b98de1ae7a8c57f36b344 /random/random.c | |
parent | 751fcadd34ed42b2e595664e9ec3f88fd074d7b7 (diff) | |
download | libgcrypt-754ad5815b5bb7462260414f2bc5f449bee0b1c6.tar.gz |
random: Remove use of experimental random daemon.
* random/Makefile.am (librandom_la_SOURCES): Remove random-daemon.c.
* random/random-daemon.c: Remove.
* random/rand-internal.h: Remove declarations.
* random/random-csprng.c (_gcry_rngcsprng_set_daemon_socket)
(_gcry_rngcsprng_use_daemon): Remove.
[USE_RANDOM_DAEMON] (_gcry_rngcsprng_randomize): Don't call
_gcry_daemon_randomize.
* random/random.c (_gcry_set_random_daemon_socket)
(_gcry_use_random_daemon): Remove.
* src/global.c (_gcry_vcontrol): Return GPG_ERR_NOT_SUPPORTED.
* tests/benchmark.c (main): Remove support of use_random_daemon.
--
GnuPG-bug-id: 5706
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'random/random.c')
-rw-r--r-- | random/random.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/random/random.c b/random/random.c index 9aab7893..c0435d7b 100644 --- a/random/random.c +++ b/random/random.c @@ -307,28 +307,6 @@ _gcry_enable_quick_random_gen (void) } -void -_gcry_set_random_daemon_socket (const char *socketname) -{ - if (fips_mode ()) - ; /* Not used. */ - else - _gcry_rngcsprng_set_daemon_socket (socketname); -} - -/* With ONOFF set to 1, enable the use of the daemon. With ONOFF set - to 0, disable the use of the daemon. With ONOF set to -1, return - whether the daemon has been enabled. */ -int -_gcry_use_random_daemon (int onoff) -{ - if (fips_mode ()) - return 0; /* Never enabled in fips mode. */ - else - return _gcry_rngcsprng_use_daemon (onoff); -} - - /* This function returns true if no real RNG is available or the quality of the RNG has been degraded for test purposes. */ int |