Allow reseed interval to be set.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 18 Sep 2011 19:36:27 +0000 (19:36 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 18 Sep 2011 19:36:27 +0000 (19:36 +0000)
fips/rand/fips_drbg_lib.c
fips/rand/fips_rand.h

index 015b95a972682a8ce3c393b7b9fa79e3350db301..07f8b1217949d36cd9d20fdb3986d721f336e727 100644 (file)
@@ -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)
index faba6f4ff9a72e3c942cdde830d1fc6d00b2df32..d81ffccd3c76903f4b4ad5c365bb679d1ba6696f 100644 (file)
@@ -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);