From: job Date: Wed, 31 Jan 2024 15:01:13 +0000 (+0000) Subject: Make the error a bit easier to read X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0072a924f7fcd81df8d92f6b1606984f0ee04635;p=openbsd Make the error a bit easier to read OK tb@ --- 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 * Copyright (c) 2021 Claudio Jeker @@ -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; } }