diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-08-09 13:18:33 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-08-09 15:33:01 +0200 |
commit | 0e91397a3a5db3b5e0d654e9d089d44e9a73a65a (patch) | |
tree | 23b230f9da24185febdb9297d242c21d0dc36e41 /lib | |
parent | 8d0e5814ed9e37f122dc90980b407d7e99a4c1b0 (diff) | |
download | gnutls-0e91397a3a5db3b5e0d654e9d089d44e9a73a65a.tar.gz |
rnd: use time_t for prng_reseed_time
This ensures that all time comparisons are done
under the same type.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/nettle/rnd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nettle/rnd.c b/lib/nettle/rnd.c index a02c72f519..9d8b250012 100644 --- a/lib/nettle/rnd.c +++ b/lib/nettle/rnd.c @@ -54,7 +54,7 @@ static const unsigned prng_reseed_limits[] = { [GNUTLS_RND_KEY] = 2*1024*1024 /* same as GNUTLS_RND_RANDOM - but we re-key on every operation */ }; -static const unsigned prng_reseed_time[] = { +static const time_t prng_reseed_time[] = { [GNUTLS_RND_NONCE] = 14400, /* 4 hours */ [GNUTLS_RND_RANDOM] = 7200, /* 2 hours */ [GNUTLS_RND_KEY] = 7200 /* same as RANDOM */ |