diff options
author | Matt Caswell <matt@openssl.org> | 2021-04-09 17:26:34 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2021-04-16 14:27:28 +0100 |
commit | 6ce58488bdce66584a7075e19821add29445d746 (patch) | |
tree | a5b5bde99d963808dabc07b430a48a140036d6e1 /providers/implementations/kem/rsa_kem.c | |
parent | 81cc5ce1a0f996f88051f031bda1079961ee4a5c (diff) |
Store some FIPS global variables in the FIPS_GLOBAL structure
We had some FIPS global variables that were based on values from the
config file. In theory if two instances of the fips module are loaded
they could be based on different config files which would cause this to
fail. Instead we store them in the FIPS_GLOBAL structure.
Fixes #14364
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14814)
Diffstat (limited to 'providers/implementations/kem/rsa_kem.c')
-rw-r--r-- | providers/implementations/kem/rsa_kem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/implementations/kem/rsa_kem.c b/providers/implementations/kem/rsa_kem.c index 3809bfb8b1..9aa0a7aaee 100644 --- a/providers/implementations/kem/rsa_kem.c +++ b/providers/implementations/kem/rsa_kem.c @@ -125,7 +125,7 @@ static int rsakem_init(void *vprsactx, void *vrsa, if (prsactx == NULL || vrsa == NULL) return 0; - if (!ossl_rsa_check_key(vrsa, operation)) + if (!ossl_rsa_check_key(prsactx->libctx, vrsa, operation)) return 0; if (!RSA_up_ref(vrsa)) |