Make it possible to easily specify a libctx for EVP_DigestSign*
authorMatt Caswell <matt@openssl.org>
Thu, 12 Mar 2020 14:39:47 +0000 (14:39 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 23 Mar 2020 11:09:49 +0000 (11:09 +0000)
commita45694a3567ce8de754cffa7b450c22578ebdd6c
tree49037dc906ab05d209c9dc40aa8aa3fd20a0b8bb
parent0996cff91fe9d6ed7c37830debdf585119dcc067
Make it possible to easily specify a libctx for EVP_DigestSign*

EVP_DigestSignInit_ex and EVP_DigestVerifyInit_ex did not provide the
capability to specify an explicit OPENSSL_CTX parameter. It is still
possible by explicitly setting an EVP_PKEY_CTX - but in most cases it
would be much simpler to just specify it in the Init call. We add the
capability to do that.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11353)
crypto/evp/m_sigver.c
doc/man3/EVP_DigestSignInit.pod
doc/man3/EVP_DigestVerifyInit.pod
include/openssl/evp.h
test/evp_extra_test.c