summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client
diff options
context:
space:
mode:
authorJob Snijders <job@cvs.openbsd.org>2022-11-16 08:57:39 +0000
committerJob Snijders <job@cvs.openbsd.org>2022-11-16 08:57:39 +0000
commitd73f8396d27333590ae574110a6af3d064141289 (patch)
tree7ee3a58413654e525a2fd2f2710732b72d0cb466 /usr.sbin/rpki-client
parentb633a883b7fa8b87636badfca590288f9806ee2e (diff)
Align output to a more tabular view
OK claudio@
Diffstat (limited to 'usr.sbin/rpki-client')
-rw-r--r--usr.sbin/rpki-client/print.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/usr.sbin/rpki-client/print.c b/usr.sbin/rpki-client/print.c
index a50b9528cea..8848b819b13 100644
--- a/usr.sbin/rpki-client/print.c
+++ b/usr.sbin/rpki-client/print.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print.c,v 1.19 2022/11/04 17:39:36 job Exp $ */
+/* $OpenBSD: print.c,v 1.20 2022/11/16 08:57:38 job Exp $ */
/*
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -181,15 +181,17 @@ cert_print(const struct cert *p)
if (p->aia != NULL)
printf("Authority info access: %s\n", p->aia);
if (p->mft != NULL)
- printf("Manifest: %s\n", p->mft);
+ printf("Manifest: %s\n", p->mft);
if (p->repo != NULL)
- printf("caRepository: %s\n", p->repo);
+ printf("caRepository: %s\n", p->repo);
if (p->notify != NULL)
- printf("Notify URL: %s\n", p->notify);
- if (p->pubkey != NULL)
+ printf("Notify URL: %s\n", p->notify);
+ if (p->pubkey != NULL) {
printf("BGPsec ECDSA public key: %s\n",
p->pubkey);
- printf("Router key valid until: %s\n", tbuf);
+ printf("Router key valid until: %s\n", tbuf);
+ } else
+ printf("Certificate valid until: %s\n", tbuf);
printf("Subordinate Resources:\n");
}