rpki-client: avoid hard error when hitting the maximum cert id
authortb <tb@openbsd.org>
Wed, 12 Jun 2024 10:03:09 +0000 (10:03 +0000)
committertb <tb@openbsd.org>
Wed, 12 Jun 2024 10:03:09 +0000 (10:03 +0000)
commit1d8c64435016c723a0f6b5b79669a39bcb132a60
tree1a31dfaf91e33d1b72d8fc755331e884223f70d9
parent0eb896d3110269287aac96e60531d4f98029eef6
rpki-client: avoid hard error when hitting the maximum cert id

Instead, continue processing what we can but avoid lots of warning noise.
Error out at the end of the parser process to avoid loading a bad config
into bgpd. This isn't great as it is and can be refined in tree.

ok claudio
usr.sbin/rpki-client/cert.c
usr.sbin/rpki-client/crl.c
usr.sbin/rpki-client/filemode.c
usr.sbin/rpki-client/parser.c
usr.sbin/rpki-client/validate.c