diff options
author | Rich Salz <rsalz@openssl.org> | 2017-07-19 17:41:26 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-07-20 05:49:09 -0400 |
commit | 4c75ee858893dee3c978ff2295fb5ef106797574 (patch) | |
tree | da5c67d4896dc6ecd9b8cc481211f1419d8d0042 /include | |
parent | d76f646adeea13c14d15ee6c659b3a5785fdad33 (diff) |
Add range-checking to RAND_DRBG_set_reseed_interval
As suggested by Kurt.
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/3970)
Diffstat (limited to 'include')
-rw-r--r-- | include/internal/rand.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/internal/rand.h b/include/internal/rand.h index 95ad712573..0d386f6ee8 100644 --- a/include/internal/rand.h +++ b/include/internal/rand.h @@ -35,7 +35,7 @@ int RAND_DRBG_set_callbacks(DRBG_CTX *dctx, void (*cleanup_nonce)(DRBG_CTX *ctx, unsigned char *out, size_t olen) ); -void RAND_DRBG_set_reseed_interval(DRBG_CTX *dctx, int interval); +int RAND_DRBG_set_reseed_interval(DRBG_CTX *dctx, int interval); #define RAND_DRBG_get_ex_new_index(l, p, newf, dupf, freef) \ CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_DRBG, l, p, newf, dupf, freef) |