diff options
author | Pauli <pauli@openssl.org> | 2023-09-05 12:51:05 +1000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2023-09-27 17:23:04 +0100 |
commit | 4cde7585ce8eb53682256ba79e6af1949498fbfe (patch) | |
tree | 0a2d79638c8770ff7d97c4c67a19c3a897b94f82 /providers/baseprov.c | |
parent | a9483b8aa00753a2a9665273c0e376f3c1d36e65 (diff) |
fips: use seed source requested
Fixes #21909
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21964)
Diffstat (limited to 'providers/baseprov.c')
-rw-r--r-- | providers/baseprov.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/providers/baseprov.c b/providers/baseprov.c index 2e5dbe410f..6b8de7cb36 100644 --- a/providers/baseprov.c +++ b/providers/baseprov.c @@ -19,6 +19,7 @@ #include "prov/providercommon.h" #include "prov/implementations.h" #include "prov/provider_util.h" +#include "prov/names.h" /* * Forward declarations to ensure that interface functions are correctly @@ -90,6 +91,11 @@ static const OSSL_ALGORITHM base_store[] = { #undef STORE }; +static const OSSL_ALGORITHM base_rands[] = { + { PROV_NAMES_SEED_SRC, "provider=base", ossl_seed_src_functions }, + { NULL, NULL, NULL } +}; + static const OSSL_ALGORITHM *base_query(void *provctx, int operation_id, int *no_cache) { @@ -101,6 +107,8 @@ static const OSSL_ALGORITHM *base_query(void *provctx, int operation_id, return base_decoder; case OSSL_OP_STORE: return base_store; + case OSSL_OP_RAND: + return base_rands; } return NULL; } |