-/* $OpenBSD: mft.c,v 1.116 2024/05/24 12:57:20 tb Exp $ */
+/* $OpenBSD: mft.c,v 1.117 2024/06/11 10:38:40 tb Exp $ */
/*
* Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
if (OBJ_obj2nid(mft_asn1->fileHashAlg) != NID_sha256) {
warnx("%s: RFC 6486 section 4.2.1: fileHashAlg: "
- "want SHA256 object, have %s (NID %d)", fn,
- ASN1_tag2str(OBJ_obj2nid(mft_asn1->fileHashAlg)),
- OBJ_obj2nid(mft_asn1->fileHashAlg));
+ "want SHA256 object, have %s", fn,
+ nid2str(OBJ_obj2nid(mft_asn1->fileHashAlg)));
goto out;
}
-/* $OpenBSD: rsc.c,v 1.34 2024/02/21 09:17:06 tb Exp $ */
+/* $OpenBSD: rsc.c,v 1.35 2024/06/11 10:38:40 tb Exp $ */
/*
* Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
* Copyright (c) 2022 Job Snijders <job@fastly.com>
}
if ((nid = OBJ_obj2nid(obj)) != NID_sha256) {
- warnx("%s: RSC DigestAlgorithmIdentifier: want SHA256, have %s"
- " (NID %d)", fn, ASN1_tag2str(nid), nid);
+ warnx("%s: RSC DigestAlgorithmIdentifier: want SHA256, have %s",
+ fn, nid2str(nid));
return 0;
}