Skip to content

Commit

Permalink
PROV: Adapt the DSA keymgmt implementation to no ex_fields
Browse files Browse the repository at this point in the history
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from #10837)
  • Loading branch information
levitte committed Jan 15, 2020
1 parent a332778 commit 9ec7b6a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions providers/implementations/keymgmt/dsa_kmgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 9ec7b6a

Please sign in to comment.