Split certificate parsing in two steps. cert_parse_pre() which does
authorclaudio <claudio@openbsd.org>
Sat, 2 Apr 2022 12:17:53 +0000 (12:17 +0000)
committerclaudio <claudio@openbsd.org>
Sat, 2 Apr 2022 12:17:53 +0000 (12:17 +0000)
commitba153bd8ee8e25e97360186636b4f6b4fb7d6b8a
treec3336ea7c92808c152f8f34c74495d8a54088b0e
parent0b663382b5b03c2629c3ce348f5f495bebf8fc61
Split certificate parsing in two steps. cert_parse_pre() which does
the parse and some checks and cert_parse() or ta_parse() to do the
additional checks for regular certs or TAs.
With this adjust the cert parser in -f mode to identify TAs (by checking
if it is self signed) and adjust the validation in that case. Now -f
should be able to parse and show all object correctly.
With and OK tb@
usr.sbin/rpki-client/cert.c
usr.sbin/rpki-client/extern.h
usr.sbin/rpki-client/main.c
usr.sbin/rpki-client/parser.c