The filemode code is enough different from the regular parser code that it
authorclaudio <claudio@openbsd.org>
Thu, 21 Apr 2022 09:53:07 +0000 (09:53 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 21 Apr 2022 09:53:07 +0000 (09:53 +0000)
commitc4a9443c2d5e5c9028ce984677bcc19b1f69aad6
tree753e9a46e38c496084753cc887cca59d532c2a63
parentca418a52fc95153e11384f5264cdb996bc20a475
The filemode code is enough different from the regular parser code that it
makes sense to totally split it out. Duplicate proc_parser_cert_validate()
and proc_parser_root_cert() for now.

The valid_x509() plus the required static functions are moved to validate.c.
The crl_tree code moved into crl.c similar to the auth_tree handling in
cert.c. All the proc functions are now tagged with __attribute(noreturn)
which allows to remove the errx() after them.

OK tb@
usr.sbin/rpki-client/Makefile
usr.sbin/rpki-client/cert.c
usr.sbin/rpki-client/crl.c
usr.sbin/rpki-client/extern.h
usr.sbin/rpki-client/filemode.c [new file with mode: 0644]
usr.sbin/rpki-client/main.c
usr.sbin/rpki-client/parser.c
usr.sbin/rpki-client/validate.c