cms_DigestedData_create() use X509_ALGOR_set_evp_md()
authortb <tb@openbsd.org>
Wed, 18 Oct 2023 07:24:15 +0000 (07:24 +0000)
committertb <tb@openbsd.org>
Wed, 18 Oct 2023 07:24:15 +0000 (07:24 +0000)
commit0c49ecc49576550165ee01419434145125428980
tree8f20bc40e915b9f7cf55f6196749a523cba2372e
parent50a0593faf3b1c149cc50f2c9e09e1ff71a710ce
cms_DigestedData_create() use X509_ALGOR_set_evp_md()

Our internal version allows for error checking and this avoids a silent
failure leading to corruption later on.

Clean up includes while there.

ok jsing
lib/libcrypto/cms/cms_dd.c