From: job Date: Tue, 21 Feb 2023 11:13:05 +0000 (+0000) Subject: Check all possible storage areas for a matching CRL X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=061a04ee8b274d3b6fe1f5a87472164c4731ac4f;p=openbsd Check all possible storage areas for a matching CRL This change makes proc_parser_mft_pre() -> parse_load_crl_from_mft() search in both DIR_TEMP and DIR_VALID for a CRL with a matching SHA256 hash, increasing our chances of constructing a full publication point. With and OK tb@ claudio@ --- diff --git a/usr.sbin/rpki-client/parser.c b/usr.sbin/rpki-client/parser.c index d558981d713..0d4fa9dafd7 100644 --- a/usr.sbin/rpki-client/parser.c +++ b/usr.sbin/rpki-client/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.82 2023/01/06 16:06:43 claudio Exp $ */ +/* $OpenBSD: parser.c,v 1.83 2023/02/21 11:13:05 job Exp $ */ /* * Copyright (c) 2019 Claudio Jeker * Copyright (c) 2019 Kristaps Dzonsons @@ -348,7 +348,7 @@ proc_parser_mft(struct entity *entp, struct mft **mp) f = load_file(file1, &flen); if (f == NULL && errno != ENOENT) warn("parse file %s", file1); - mft1 = proc_parser_mft_pre(file1, f, flen, entp, DIR_VALID, + mft1 = proc_parser_mft_pre(file1, f, flen, entp, DIR_TEMP, &crl1, &err1); free(f); }