summaryrefslogtreecommitdiffstats
path: root/fips
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-09-18 19:36:27 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-09-18 19:36:27 +0000
commita5799bdc4884153c503c2719225331193a994a32 (patch)
treef416fe6e8aa98551e29afc29d54a6976811cd4ad /fips
parent2b1f17f83fb82607c178123c63237171a9b771cb (diff)
Allow reseed interval to be set.
Diffstat (limited to 'fips')
-rw-r--r--fips/rand/fips_drbg_lib.c5
-rw-r--r--fips/rand/fips_rand.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/fips/rand/fips_drbg_lib.c b/fips/rand/fips_drbg_lib.c
index 015b95a972..07f8b12179 100644
--- a/fips/rand/fips_drbg_lib.c
+++ b/fips/rand/fips_drbg_lib.c
@@ -500,6 +500,11 @@ void FIPS_drbg_set_check_interval(DRBG_CTX *dctx, int interval)
dctx->health_check_interval = interval;
}
+void FIPS_drbg_set_reseed_interval(DRBG_CTX *dctx, int interval)
+ {
+ dctx->reseed_interval = interval;
+ }
+
static int drbg_stick = 0;
void FIPS_drbg_stick(void)
diff --git a/fips/rand/fips_rand.h b/fips/rand/fips_rand.h
index faba6f4ff9..d81ffccd3c 100644
--- a/fips/rand/fips_rand.h
+++ b/fips/rand/fips_rand.h
@@ -113,6 +113,7 @@ void FIPS_drbg_set_app_data(DRBG_CTX *ctx, void *app_data);
size_t FIPS_drbg_get_blocklength(DRBG_CTX *dctx);
int FIPS_drbg_get_strength(DRBG_CTX *dctx);
void FIPS_drbg_set_check_interval(DRBG_CTX *dctx, int interval);
+void FIPS_drbg_set_reseed_interval(DRBG_CTX *dctx, int interval);
DRBG_CTX *FIPS_get_default_drbg(void);
const RAND_METHOD *FIPS_drbg_method(void);