From 14d83341a7f9f0bdd7ebf9a12691604b82e4ec03 Mon Sep 17 00:00:00 2001 From: job Date: Wed, 16 Nov 2022 08:57:38 +0000 Subject: [PATCH] Align output to a more tabular view OK claudio@ --- usr.sbin/rpki-client/print.c | 14 ++++++++------ 1 file 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 * Copyright (c) 2019 Kristaps Dzonsons @@ -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"); } -- 2.20.1