Simplify valid_cert() and valid_roa() by passing in struct auth instead
authorclaudio <claudio@openbsd.org>
Sun, 23 Jan 2022 05:59:35 +0000 (05:59 +0000)
committerclaudio <claudio@openbsd.org>
Sun, 23 Jan 2022 05:59:35 +0000 (05:59 +0000)
commit24069af1d090231bd09ccc5376fe36cde649907a
treee24ce435754c41eaad6d3305cd4f862562b85138
parent1f6b1162831e58a00b1b5c51ff98c49d2d91634b
Simplify valid_cert() and valid_roa() by passing in struct auth instead
of looking it up again. For this valid_roa() needs to be moved up in
proc_parser_roa() also move out the assignment of the TAL id. Not the
right thing to alter an object in a validation function.
OK tb@
usr.sbin/rpki-client/extern.h
usr.sbin/rpki-client/parser.c
usr.sbin/rpki-client/validate.c