summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/rpki-client
diff options
context:
space:
mode:
authorjob <job@cvs.openbsd.org>2021-02-16 08:53:54 +0000
committerjob <job@cvs.openbsd.org>2021-02-16 08:53:54 +0000
commite0aeebc4b883d454aeb2b3b60139ccdb2455b18f (patch)
tree8bf7f42152d119a09f87b107ab6045f21c92a88e /regress/usr.sbin/rpki-client
parent3e91fb445a33bf4064ef369e51ae05e30ceafd62 (diff)
Print AIA in rpki-client test utility
Diffstat (limited to 'regress/usr.sbin/rpki-client')
-rw-r--r--regress/usr.sbin/rpki-client/Makefile.inc4
-rw-r--r--regress/usr.sbin/rpki-client/test-cert.c4
-rw-r--r--regress/usr.sbin/rpki-client/test-gbr.c3
-rw-r--r--regress/usr.sbin/rpki-client/test-mft.c3
-rw-r--r--regress/usr.sbin/rpki-client/test-roa.c3
5 files changed, 11 insertions, 6 deletions
diff --git a/regress/usr.sbin/rpki-client/Makefile.inc b/regress/usr.sbin/rpki-client/Makefile.inc
index a9f95587ce0..a4553ea31d5 100644
--- a/regress/usr.sbin/rpki-client/Makefile.inc
+++ b/regress/usr.sbin/rpki-client/Makefile.inc
@@ -1,12 +1,12 @@
-# $OpenBSD: Makefile.inc,v 1.6 2021/02/03 10:45:12 claudio Exp $
+# $OpenBSD: Makefile.inc,v 1.7 2021/02/16 08:53:53 job Exp $
.PATH: ${.CURDIR}/../../../../usr.sbin/rpki-client
PROGS += test-ip
PROGS += test-cert
+PROGS += test-gbr
PROGS += test-mft
PROGS += test-roa
-PROGS += test-gbr
PROGS += test-tal
.for p in ${PROGS}
diff --git a/regress/usr.sbin/rpki-client/test-cert.c b/regress/usr.sbin/rpki-client/test-cert.c
index b2e6b76ad7a..37018737c25 100644
--- a/regress/usr.sbin/rpki-client/test-cert.c
+++ b/regress/usr.sbin/rpki-client/test-cert.c
@@ -1,4 +1,4 @@
-/* $Id: test-cert.c,v 1.8 2021/02/08 09:28:58 claudio Exp $ */
+/* $Id: test-cert.c,v 1.9 2021/02/16 08:53:53 job Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -52,6 +52,8 @@ cert_print(const struct cert *p)
printf("Subject key identifier: %s\n", p->ski);
if (p->aki != NULL)
printf("Authority key identifier: %s\n", p->aki);
+ if (p->aia != NULL)
+ printf("Authority info access: %s\n", p->aia);
for (i = 0; i < p->asz; i++)
switch (p->as[i].type) {
diff --git a/regress/usr.sbin/rpki-client/test-gbr.c b/regress/usr.sbin/rpki-client/test-gbr.c
index 1835326bc05..39c371e54c3 100644
--- a/regress/usr.sbin/rpki-client/test-gbr.c
+++ b/regress/usr.sbin/rpki-client/test-gbr.c
@@ -1,4 +1,4 @@
-/* $Id: test-gbr.c,v 1.1 2020/12/09 11:30:44 claudio Exp $ */
+/* $Id: test-gbr.c,v 1.2 2021/02/16 08:53:53 job Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -42,6 +42,7 @@ gbr_print(const struct gbr *p)
printf("Subject key identifier: %s\n", p->ski);
printf("Authority key identifier: %s\n", p->aki);
+ printf("Authority info access: %s\n", p->aia);
printf("vcard:\n%s", p->vcard);
}
diff --git a/regress/usr.sbin/rpki-client/test-mft.c b/regress/usr.sbin/rpki-client/test-mft.c
index 5682fa97c88..cab2d3c5763 100644
--- a/regress/usr.sbin/rpki-client/test-mft.c
+++ b/regress/usr.sbin/rpki-client/test-mft.c
@@ -1,4 +1,4 @@
-/* $Id: test-mft.c,v 1.10 2020/11/09 16:13:02 tb Exp $ */
+/* $Id: test-mft.c,v 1.11 2021/02/16 08:53:53 job Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -54,6 +54,7 @@ mft_print(const struct mft *p)
printf("Subject key identifier: %s\n", p->ski);
printf("Authority key identifier: %s\n", p->aki);
+ printf("Authority info access: %s\n", p->aia);
for (i = 0; i < p->filesz; i++) {
b64_ntop(p->files[i].hash, sizeof(p->files[i].hash),
hash, sizeof(hash));
diff --git a/regress/usr.sbin/rpki-client/test-roa.c b/regress/usr.sbin/rpki-client/test-roa.c
index 507ad406401..2e479ebf55f 100644
--- a/regress/usr.sbin/rpki-client/test-roa.c
+++ b/regress/usr.sbin/rpki-client/test-roa.c
@@ -1,4 +1,4 @@
-/* $Id: test-roa.c,v 1.8 2021/01/29 10:15:42 claudio Exp $ */
+/* $Id: test-roa.c,v 1.9 2021/02/16 08:53:53 job Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -42,6 +42,7 @@ roa_print(const struct roa *p)
printf("Subject key identifier: %s\n", p->ski);
printf("Authority key identifier: %s\n", p->aki);
+ printf("Authority info access: %s\n", p->aia);
printf("asID: %" PRIu32 "\n", p->asid);
for (i = 0; i < p->ipsz; i++) {
ip_addr_print(&p->ips[i].addr,