diff options
author | Matt Caswell <matt@openssl.org> | 2020-01-15 11:10:43 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-01-27 08:45:17 +0000 |
commit | 2ee4a50ab92020dc49383d5aa644397edac4a59a (patch) | |
tree | 76af6ea9c9f93810d91929a42ef4b6b237cfaf1f /providers | |
parent | 612539e8a678c6099131dfd0e5e4b85fa774eb1a (diff) |
Modify EVP_PKEY_CTX_new_from_pkey() to add a propquery parameter
The function EVP_PKEY_CTX_new_from_pkey() infers the name of the
algorithm to fetch from the EVP_PKEY that has been supplied as an
argument. But there was no way to specify properties to be used during
that fetch.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10926)
Diffstat (limited to 'providers')
-rw-r--r-- | providers/fips/fipsprov.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/providers/fips/fipsprov.c b/providers/fips/fipsprov.c index 0ed425bc22..288168cb81 100644 --- a/providers/fips/fipsprov.c +++ b/providers/fips/fipsprov.c @@ -268,7 +268,7 @@ static int dsa_key_signature_test(OPENSSL_CTX *libctx) goto err; /* Create a EVP_PKEY_CTX to use for the signing operation */ - sctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey); + sctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, NULL); if (sctx == NULL || EVP_PKEY_sign_init(sctx) <= 0) goto err; @@ -433,7 +433,7 @@ static int dh_key_exchange_test(OPENSSL_CTX *libctx) goto err; /* Create a EVP_PKEY_CTX to perform key derivation */ - dctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey); + dctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, NULL); if (dctx == NULL) goto err; |