Rewrite X509_ALGOR_get0()
authortb <tb@openbsd.org>
Wed, 11 Oct 2023 13:10:13 +0000 (13:10 +0000)
committertb <tb@openbsd.org>
Wed, 11 Oct 2023 13:10:13 +0000 (13:10 +0000)
commit449ce39a6f2eda3b3cd648782766c0c73688faec
tree8e4e6b6f987f48ea0b1b1fbf507b84b201c71862
parent05dcc22acee387a246c1d38036ee9dfa94bbff12
Rewrite X509_ALGOR_get0()

Make the logic slightly less convoluted. Preserve the behavior that
*ppval remains unset if pptype == NULL for now. However, ensure that
*ppval is set to NULL if pptype is V_ASN1_UNDER.

ok jsing
lib/libcrypto/asn1/x_algor.c