mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
PROV: Adapt the DSA keymgmt implementation to no ex_fields
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/10837)
This commit is contained in:
parent
a3327784d9
commit
9ec7b6ad12
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user