]> git.ipfire.org Git - thirdparty/openssl.git/commit - crypto/evp/pmeth_lib.c
Make EVP_PKEY_CTX initialization more precise
authorRichard Levitte <levitte@openssl.org>
Thu, 31 Oct 2019 10:43:31 +0000 (11:43 +0100)
committerRichard Levitte <levitte@openssl.org>
Sun, 3 Nov 2019 17:33:43 +0000 (18:33 +0100)
commit60653e5b25242555446f8acf0abd5ab9ff83010c
tree5fd87b1d333800c472267394f202a8b6fe515335
parente774adb593e7bf9057775d85ecc7c24e9bacee12
Make EVP_PKEY_CTX initialization more precise

There is a vagueness around how the provider data (algorithm name and
property query string) is initialized in the presence of an engine.
This change modifies this slightly so that the algorithm name for use
with providers is never set if the initilization was given an engine.

This makes it easier for other functions to simply check ctx->algorithm
to see if the context is meant to be used for strictly legacy stuff or
not.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10308)
crypto/evp/pmeth_lib.c