From: job Date: Sun, 10 Dec 2023 14:18:23 +0000 (+0000) Subject: Since errno isn't used here, use warnx() instead of warn() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8fcc9cc255d33b8562687241c7c27f5de053be51;p=openbsd Since errno isn't used here, use warnx() instead of warn() OK tb@ --- diff --git a/usr.sbin/rpki-client/cert.c b/usr.sbin/rpki-client/cert.c index 0f98100b3d3..f9add47d32c 100644 --- a/usr.sbin/rpki-client/cert.c +++ b/usr.sbin/rpki-client/cert.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cert.c,v 1.119 2023/10/19 17:05:54 job Exp $ */ +/* $OpenBSD: cert.c,v 1.120 2023/12/10 14:18:23 job Exp $ */ /* * Copyright (c) 2022 Theo Buehler * Copyright (c) 2021 Job Snijders @@ -765,7 +765,7 @@ cert_parse_pre(const char *fn, const unsigned char *der, size_t len) nid = OBJ_obj2nid(cobj); if (nid == NID_ecdsa_with_SHA256) { if (verbose) - warn("%s: P-256 support is experimental", fn); + warnx("%s: P-256 support is experimental", fn); } else if (nid != NID_sha256WithRSAEncryption) { warnx("%s: RFC 7935: wrong signature algorithm %s, want %s", fn, OBJ_nid2ln(nid), diff --git a/usr.sbin/rpki-client/cms.c b/usr.sbin/rpki-client/cms.c index 5fe0607bb90..145f250b925 100644 --- a/usr.sbin/rpki-client/cms.c +++ b/usr.sbin/rpki-client/cms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cms.c,v 1.40 2023/10/19 17:05:54 job Exp $ */ +/* $OpenBSD: cms.c,v 1.41 2023/12/10 14:18:23 job Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * @@ -267,7 +267,7 @@ cms_parse_validate_internal(X509 **xp, const char *fn, const unsigned char *der, /* RFC7935 last paragraph of section 2 specifies the allowed psig */ if (nid == NID_ecdsa_with_SHA256) { if (verbose) - warn("%s: P-256 support is experimental", fn); + warnx("%s: P-256 support is experimental", fn); } else if (nid != NID_rsaEncryption && nid != NID_sha256WithRSAEncryption) { warnx("%s: RFC 6488: wrong signature algorithm %s, want %s", diff --git a/usr.sbin/rpki-client/crl.c b/usr.sbin/rpki-client/crl.c index 9ada6c8ee96..c57c038db84 100644 --- a/usr.sbin/rpki-client/crl.c +++ b/usr.sbin/rpki-client/crl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crl.c,v 1.29 2023/11/16 11:17:52 tb Exp $ */ +/* $OpenBSD: crl.c,v 1.30 2023/12/10 14:18:23 job Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * @@ -65,7 +65,7 @@ crl_parse(const char *fn, const unsigned char *der, size_t len) nid = OBJ_obj2nid(cobj); if (nid == NID_ecdsa_with_SHA256) { if (verbose) - warn("%s: P-256 support is experimental", fn); + warnx("%s: P-256 support is experimental", fn); } else if (nid != NID_sha256WithRSAEncryption) { warnx("%s: RFC 7935: wrong signature algorithm %s, want %s", fn, OBJ_nid2ln(nid),