diff options
author | Pauli <paul.dale@oracle.com> | 2020-05-20 14:15:04 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-06-24 20:05:42 +1000 |
commit | 6154f9a7cad7805a551343ed2111231aa2e00681 (patch) | |
tree | abfe01860005acc571b315f51f93f541ca33d21d /crypto | |
parent | 3f078163df53bdd8a8cd5f03eec6abac73775973 (diff) |
fips rand: DRBG KAT self test updates to provider model.
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/11682)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/rand/drbg_lib.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/rand/drbg_lib.c b/crypto/rand/drbg_lib.c index 80759cbfaf..ee33cfa631 100644 --- a/crypto/rand/drbg_lib.c +++ b/crypto/rand/drbg_lib.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RAND_DRBG_set is deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <string.h> #include <openssl/crypto.h> #include <openssl/err.h> @@ -433,6 +439,7 @@ void RAND_DRBG_free(RAND_DRBG *drbg) return; CRYPTO_free_ex_data(CRYPTO_EX_INDEX_RAND_DRBG, drbg, &drbg->ex_data); + EVP_RAND_CTX_free(drbg->rand); OPENSSL_free(drbg); } |