summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-08-09 13:18:33 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-08-09 15:33:01 +0200
commit0e91397a3a5db3b5e0d654e9d089d44e9a73a65a (patch)
tree23b230f9da24185febdb9297d242c21d0dc36e41
parent8d0e5814ed9e37f122dc90980b407d7e99a4c1b0 (diff)
downloadgnutls-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>
-rw-r--r--lib/nettle/rnd.c2
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 */