Skip to content

Commit aaaf52e

Browse files
committed
Don't check filename<>SIA matches in filemode
As this gets in the way of filemodes' file type autodetection OK tb@
1 parent 42693a7 commit aaaf52e

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

usr.sbin/rpki-client/cert.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: cert.c,v 1.203 2025/08/01 14:57:15 tb Exp $ */
1+
/* $OpenBSD: cert.c,v 1.204 2025/08/01 15:26:05 job Exp $ */
22
/*
33
* Copyright (c) 2022,2025 Theo Buehler <[email protected]>
44
* Copyright (c) 2021 Job Snijders <[email protected]>
@@ -899,14 +899,7 @@ cert_ee_sia(const char *fn, struct cert *cert, X509_EXTENSION *ext)
899899
goto out;
900900
}
901901

902-
if (filemode) {
903-
if (rtype_from_file_extension(cert->signedobj) !=
904-
rtype_from_file_extension(fn)) {
905-
warnx("%s: SIA signedObject contains unexpected "
906-
"filename extension", fn);
907-
goto out;
908-
}
909-
} else {
902+
if (!filemode) {
910903
const char *p = cert->signedobj + RSYNC_PROTO_LEN;
911904
size_t fnlen, plen;
912905

0 commit comments

Comments
 (0)