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/asymciphers/rsa_enc.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/asymciphers/rsa_enc.c')
-rw-r--r-- | providers/implementations/asymciphers/rsa_enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/implementations/asymciphers/rsa_enc.c b/providers/implementations/asymciphers/rsa_enc.c index ab84d53512..354c234939 100644 --- a/providers/implementations/asymciphers/rsa_enc.c +++ b/providers/implementations/asymciphers/rsa_enc.c @@ -99,7 +99,7 @@ static int rsa_init(void *vprsactx, void *vrsa, const OSSL_PARAM params[], if (!ossl_prov_is_running() || 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)) |