Update EVP_MD_CTX_get_params() et al to be EVP_DigestSign*() aware
authorMatt Caswell <matt@openssl.org>
Tue, 24 Sep 2019 11:07:48 +0000 (12:07 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 3 Oct 2019 08:47:34 +0000 (09:47 +0100)
commit5f5c3b4f278bedea466bc4338649b8c540372264
tree5c333f13c31f9d145c33fa39f10653828802f107
parenta0b6c1ffd0261152c523c5c000e9c025b39fd630
Update EVP_MD_CTX_get_params() et al to be EVP_DigestSign*() aware

If doing an EVP_DigestSign*() or EVP_DigestVerify*() operation we use
the embedded pctx for communication with the provider. Any MD params need
to use that ctx instead.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10013)
crypto/evp/digest.c