openssl pkcs12: rewrite without reaching into X509_ALGOR
authortb <tb@openbsd.org>
Sun, 19 Nov 2023 09:29:11 +0000 (09:29 +0000)
committertb <tb@openbsd.org>
Sun, 19 Nov 2023 09:29:11 +0000 (09:29 +0000)
commit95489d3b985bce8fa4357767c41729b25be39802
treeef130adc375aac6af3e2fc09cc6fc9d82397fe74
parentc3585e1cb6051f5298da1091935f12ae426c9b1d
openssl pkcs12: rewrite without reaching into X509_ALGOR

We can call ASN1_item_unpack() which will end up stuffing the same
arguments into ASN1_item_d2i() as d2i_PBEPARAM(). This eliminates
the last struct access into X509_ALGOR outside libcrypto in the base
tree.

ok jsing
usr.bin/openssl/pkcs12.c