diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-10-31 11:40:12 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-11-04 02:54:06 +0100 |
commit | fea6c3ca8f869752f4f79f724fbb8736e961fd88 (patch) | |
tree | 519158051feca47e579a3701921f8de6471d0b1c /lib/random.h | |
parent | aa204320cc0abbf038988034671821a4a23eccd9 (diff) | |
download | gnutls-fea6c3ca8f869752f4f79f724fbb8736e961fd88.tar.gz |
_gnutls_rnd_check: call _rnd_system_entropy_check directly
Diffstat (limited to 'lib/random.h')
-rw-r--r-- | lib/random.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/random.h b/lib/random.h index 59e3f3c0c4..1538ec8da6 100644 --- a/lib/random.h +++ b/lib/random.h @@ -25,6 +25,7 @@ #include <gnutls/crypto.h> #include <crypto-backend.h> +#include "nettle/rnd-common.h" extern int crypto_rnd_prio; extern void *gnutls_rnd_ctx; @@ -50,10 +51,7 @@ int _gnutls_rnd_init(void); inline static int _gnutls_rnd_check(void) { - if (_gnutls_rnd_ops.check) - return _gnutls_rnd_ops.check(gnutls_rnd_ctx); - else - return 0; + return _rnd_system_entropy_check(); } #ifndef _WIN32 |