summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJob Snijders <job@cvs.openbsd.org>2024-01-31 15:01:14 +0000
committerJob Snijders <job@cvs.openbsd.org>2024-01-31 15:01:14 +0000
commit23d2b1193dab0877e6adca45bb1b754233899a94 (patch)
tree32b5fb8bd53a58c508398980c277fc574cbab85f /usr.sbin
parent810df671ea56706f230d45c5b2d6fe134bcfadd0 (diff)
Make the error a bit easier to read
OK tb@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/rpki-client/x509.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rpki-client/x509.c b/usr.sbin/rpki-client/x509.c
index 5a06568f209..38b1e5df1e5 100644
--- a/usr.sbin/rpki-client/x509.c
+++ b/usr.sbin/rpki-client/x509.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509.c,v 1.75 2023/11/16 11:10:59 tb Exp $ */
+/* $OpenBSD: x509.c,v 1.76 2024/01/31 15:01:13 job Exp $ */
/*
* Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
@@ -956,7 +956,7 @@ x509_valid_subject(const char *fn, const X509 *x)
return 0;
default:
warnx("%s: RFC 6487 section 4.5: unexpected attribute "
- "%s", fn, OBJ_nid2sn(nid));
+ "%d (%s)", fn, nid, OBJ_nid2ln(nid));
return 0;
}
}