Align CRL and CSR version printing with certs
authortb <tb@openbsd.org>
Fri, 3 May 2024 02:52:00 +0000 (02:52 +0000)
committertb <tb@openbsd.org>
Fri, 3 May 2024 02:52:00 +0000 (02:52 +0000)
commit2683028449e0ad8e4c56d66bc0941e661dbfa8f1
treee7c5119af385f2b67c7757d6526261397f8ee50e
parent5344938f422c49f21062984bf3362d802b6b9356
Align CRL and CSR version printing with certs

Only print specified 0-based versions and print them with the 1-based
human interpretation. Use a colon and error check the BIO_printf()
calls. (There's a lot more to clean up in here, but that's for another
day).

Notably, X509_CRL_print_ex() is missing... I guess that's better than
having one with signature and semantics differing from X509_print_ex()
und X509_REQ_print_ex().

ok beck
lib/libcrypto/asn1/t_crl.c
lib/libcrypto/asn1/t_req.c