diff options
author | Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> | 2018-02-08 22:46:23 +0100 |
---|---|---|
committer | Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> | 2018-02-13 17:32:54 +0100 |
commit | 4f9dabbfe30c3539dd6cb0bd861ddb0127c11c20 (patch) | |
tree | c2db0affead1c145e520dd819a7aecf2aa897c10 /include | |
parent | 3ce1c27b56fa9856693e5c98331cebaa2a3accfa (diff) |
DRBG: unify initialization and cleanup code
The functions drbg_setup() and drbg_cleanup() used to duplicate a lot of
code from RAND_DRBG_new() and RAND_DRBG_free(). This duplication has been
removed, which simplifies drbg_setup() and makes drbg_cleanup() obsolete.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5294)
Diffstat (limited to 'include')
-rw-r--r-- | include/internal/rand.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/internal/rand.h b/include/internal/rand.h index a7d2912069..1dde659716 100644 --- a/include/internal/rand.h +++ b/include/internal/rand.h @@ -28,6 +28,7 @@ * Object lifetime functions. */ RAND_DRBG *RAND_DRBG_new(int type, unsigned int flags, RAND_DRBG *parent); +RAND_DRBG *RAND_DRBG_secure_new(int type, unsigned int flags, RAND_DRBG *parent); int RAND_DRBG_set(RAND_DRBG *drbg, int type, unsigned int flags); int RAND_DRBG_instantiate(RAND_DRBG *drbg, const unsigned char *pers, size_t perslen); |