From: Pauli Date: Tue, 2 Mar 2021 10:21:00 +0000 (+1000) Subject: misc: other init function param additions X-Git-Tag: openssl-3.0.0-alpha14~326 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1666eec83722ff9e2c80ec8fe86c71b317959591;p=thirdparty%2Fopenssl.git misc: other init function param additions Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/14383) --- diff --git a/crypto/cms/cms_sd.c b/crypto/cms/cms_sd.c index cc980d4e58a..0c3f04388bc 100644 --- a/crypto/cms/cms_sd.c +++ b/crypto/cms/cms_sd.c @@ -419,7 +419,7 @@ CMS_SignerInfo *CMS_add1_signer(CMS_ContentInfo *cms, } else if (EVP_DigestSignInit_ex(si->mctx, &si->pctx, EVP_MD_name(md), ossl_cms_ctx_get0_libctx(ctx), ossl_cms_ctx_get0_propq(ctx), - pk) <= 0) { + pk, NULL) <= 0) { goto err; } } @@ -743,7 +743,8 @@ int CMS_SignerInfo_sign(CMS_SignerInfo *si) EVP_MD_CTX_reset(mctx); if (EVP_DigestSignInit_ex(mctx, &pctx, md_name, ossl_cms_ctx_get0_libctx(ctx), - ossl_cms_ctx_get0_propq(ctx), si->pkey) <= 0) + ossl_cms_ctx_get0_propq(ctx), si->pkey, + NULL) <= 0) goto err; si->pctx = pctx; } @@ -853,7 +854,7 @@ int CMS_SignerInfo_verify(CMS_SignerInfo *si) } mctx = si->mctx; if (EVP_DigestVerifyInit_ex(mctx, &si->pctx, EVP_MD_name(md), libctx, - propq, si->pkey) <= 0) + propq, si->pkey, NULL) <= 0) goto err; if (!cms_sd_asn1_ctrl(si, 1)) diff --git a/crypto/ct/ct_vfy.c b/crypto/ct/ct_vfy.c index 2ffca19400e..0226dbf0c5e 100644 --- a/crypto/ct/ct_vfy.c +++ b/crypto/ct/ct_vfy.c @@ -123,7 +123,7 @@ int SCT_CTX_verify(const SCT_CTX *sctx, const SCT *sct) goto end; if (!EVP_DigestVerifyInit_ex(ctx, NULL, "SHA2-256", sctx->libctx, - sctx->propq, sctx->pkey)) + sctx->propq, sctx->pkey, NULL)) goto end; if (!sct_ctx_update(ctx, sctx, sct)) diff --git a/crypto/pkcs7/pk7_doit.c b/crypto/pkcs7/pk7_doit.c index ab23100f495..c9e4d719aa5 100644 --- a/crypto/pkcs7/pk7_doit.c +++ b/crypto/pkcs7/pk7_doit.c @@ -928,7 +928,8 @@ int PKCS7_SIGNER_INFO_sign(PKCS7_SIGNER_INFO *si) if (EVP_DigestSignInit_ex(mctx, &pctx, EVP_MD_name(md), ossl_pkcs7_ctx_get0_libctx(ctx), - ossl_pkcs7_ctx_get0_propq(ctx), si->pkey) <= 0) + ossl_pkcs7_ctx_get0_propq(ctx), si->pkey, + NULL) <= 0) goto err; /*