Rewrite X509_PUBKEY_set0_param() to use asn1_abs_set_unused_bits()
authortb <tb@openbsd.org>
Tue, 24 May 2022 19:59:14 +0000 (19:59 +0000)
committertb <tb@openbsd.org>
Tue, 24 May 2022 19:59:14 +0000 (19:59 +0000)
commit5c3545314e383fdfc67e67ac2f8b24bb19b51e80
tree8ea1a58f1131f9d34ce3a521c8586edc4877817d
parent078809e2d47e2b8bf41d39b1c111e25c0af284d6
Rewrite X509_PUBKEY_set0_param() to use asn1_abs_set_unused_bits()

This streamlines the logic and uses ASN1_STRING_set0() and
asn1_abs_set_unused_bits() instead of inlining them.

ok jsing
lib/libcrypto/asn1/x_pubkey.c