Make ASN1_{INTEGER,ENUMERATED}_get() return 0 on NULL again
authortb <tb@openbsd.org>
Sat, 9 Jul 2022 14:46:42 +0000 (14:46 +0000)
committertb <tb@openbsd.org>
Sat, 9 Jul 2022 14:46:42 +0000 (14:46 +0000)
commit60329c6de1a96188c71c3c7c2708a1f2926df96c
tree0e0a1f3d40f626c30cc34505f89e163a04c92985
parente1aa552022908ce902d8c219c6242fd014d35a7f
Make ASN1_{INTEGER,ENUMERATED}_get() return 0 on NULL again

This is the documented behavior which got lost in the recent rewrite.

Mismatch of documentation and reality pointed out by schwarze

ok jsing
lib/libcrypto/asn1/a_enum.c
lib/libcrypto/asn1/a_int.c