From: Richard Levitte Date: Tue, 14 Jan 2020 01:35:29 +0000 (+0100) Subject: PROV: Adapt the DSA keymgmt implementation to no ex_fields X-Git-Tag: openssl-3.0.0-alpha1~670 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9ec7b6ad12529d2ab05b0b18fdabe1b12123f9d5;p=oweals%2Fopenssl.git PROV: Adapt the DSA keymgmt implementation to no ex_fields Reviewed-by: Matt Caswell Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/10837) --- diff --git a/providers/implementations/keymgmt/dsa_kmgmt.c b/providers/implementations/keymgmt/dsa_kmgmt.c index c3ab48b4eb..41e9bca8a6 100644 --- a/providers/implementations/keymgmt/dsa_kmgmt.c +++ b/providers/implementations/keymgmt/dsa_kmgmt.c @@ -135,9 +135,8 @@ static int key_to_params(DSA *dsa, OSSL_PARAM_BLD *tmpl) static void *dsa_importdomparams(void *provctx, const OSSL_PARAM params[]) { DSA *dsa; - OPENSSL_CTX *libctx = PROV_LIBRARY_CONTEXT_OF(provctx); - if ((dsa = dsa_new(libctx)) == NULL + if ((dsa = DSA_new()) == NULL || !params_to_domparams(dsa, params)) { DSA_free(dsa); dsa = NULL; @@ -166,9 +165,8 @@ static int dsa_exportdomparams(void *domparams, static void *dsa_importkey(void *provctx, const OSSL_PARAM params[]) { DSA *dsa; - OPENSSL_CTX *libctx = PROV_LIBRARY_CONTEXT_OF(provctx); - if ((dsa = dsa_new(libctx)) == NULL + if ((dsa = DSA_new()) == NULL || !params_to_key(dsa, params)) { DSA_free(dsa); dsa = NULL;