Change x509_get_aki(), x509_get_ski(), x509_get_aia(), and x509_get_crl()
authorclaudio <claudio@openbsd.org>
Fri, 1 Apr 2022 17:22:07 +0000 (17:22 +0000)
committerclaudio <claudio@openbsd.org>
Fri, 1 Apr 2022 17:22:07 +0000 (17:22 +0000)
commitf999fe57db76cb816829fc573cadc0d6921a960a
tree79ecc46763c802d52a4dcdccdeed054707d4d44b
parent0a039610e5c4b7daf64dc12006cb3a02dacf5c7f
Change x509_get_aki(), x509_get_ski(), x509_get_aia(), and x509_get_crl()
to work more like x509_get_expire(). They will return an error if the
extension extraction failed but not if it was not present. The callers
must now do that check but most did already.
With this cert_parse_inner() no longer cares about TA vs non-TA certs.
Feedback and OK tb@
usr.sbin/rpki-client/cert.c
usr.sbin/rpki-client/extern.h
usr.sbin/rpki-client/gbr.c
usr.sbin/rpki-client/mft.c
usr.sbin/rpki-client/parser.c
usr.sbin/rpki-client/roa.c
usr.sbin/rpki-client/x509.c