PROV: Adapt the DSA keymgmt implementation to no ex_fields
authorRichard Levitte <levitte@openssl.org>
Tue, 14 Jan 2020 01:35:29 +0000 (02:35 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 15 Jan 2020 22:45:41 +0000 (23:45 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10837)

providers/implementations/keymgmt/dsa_kmgmt.c

index c3ab48b4ebd1a99079151e947cd8f8f61e6df04f..41e9bca8a6614df709dc5437b9ecf7b48fd35936 100644 (file)
@@ -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;