diff options
author | Richard Levitte <levitte@openssl.org> | 2020-12-11 11:01:09 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-12-17 12:02:08 +0100 |
commit | 6963979f5c0f95b2152ef74645faa7344e33284d (patch) | |
tree | ff97ca1102560458f90bc3e16db622055aec41fd /include/crypto/ec.h | |
parent | e77c13f8b73ff937819d6551ddd616fe01b989d0 (diff) |
DECODER: Adjust the library context of keys in our decoders
Because decoders are coupled with keymgmts from the same provider,
ours need to produce provider side keys the same way. Since our
keymgmts create key data with the provider library context, so must
our decoders.
We solve with functions to adjust the library context of decoded keys,
and use them.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13661)
Diffstat (limited to 'include/crypto/ec.h')
-rw-r--r-- | include/crypto/ec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/crypto/ec.h b/include/crypto/ec.h index 451a3751a1..087457fa50 100644 --- a/include/crypto/ec.h +++ b/include/crypto/ec.h @@ -61,6 +61,7 @@ int ec_key_private_check(const EC_KEY *eckey); int ec_key_pairwise_check(const EC_KEY *eckey, BN_CTX *ctx); OSSL_LIB_CTX *ec_key_get_libctx(const EC_KEY *eckey); const char *ec_key_get0_propq(const EC_KEY *eckey); +void ec_key_set0_libctx(EC_KEY *key, OSSL_LIB_CTX *libctx); /* Backend support */ int ec_group_todata(const EC_GROUP *group, OSSL_PARAM_BLD *tmpl, |