diff options
author | 2020-12-09 11:25:08 +0000 | |
---|---|---|
committer | 2020-12-09 11:25:08 +0000 | |
commit | 5e4fb0f7f1c306af35fd64bcc479aae1aa33b353 (patch) | |
tree | 6af2183bcc95f76ffdcfd0949ca3365793e2fb8a | |
parent | If provided print the RRDP notify URL along the MFT rsync URL (diff) | |
download | wireguard-openbsd-5e4fb0f7f1c306af35fd64bcc479aae1aa33b353.tar.xz wireguard-openbsd-5e4fb0f7f1c306af35fd64bcc479aae1aa33b353.zip |
All files provided in a manifest needs to be checked against the provided
hash even if rpki-client ignores this file later on.
OK job@
-rw-r--r-- | usr.sbin/rpki-client/mft.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/usr.sbin/rpki-client/mft.c b/usr.sbin/rpki-client/mft.c index a4492b2e390..c41bbd4f552 100644 --- a/usr.sbin/rpki-client/mft.c +++ b/usr.sbin/rpki-client/mft.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mft.c,v 1.19 2020/11/06 04:22:18 tb Exp $ */ +/* $OpenBSD: mft.c,v 1.20 2020/12/09 11:25:08 claudio Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -171,16 +171,6 @@ mft_parse_filehash(struct parse *p, const ASN1_OCTET_STRING *os) goto out; } - if (strcasecmp(fn + sz - 4, ".roa") && - strcasecmp(fn + sz - 4, ".crl") && - strcasecmp(fn + sz - 4, ".cer")) { - /* ignore unknown files */ - free(fn); - fn = NULL; - rc = 1; - goto out; - } - /* Now hash value. */ hash = sk_ASN1_TYPE_value(seq, 1); |