From: job Date: Tue, 16 Feb 2021 08:53:53 +0000 (+0000) Subject: Print AIA in rpki-client test utility X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7a9fb462c9b7bc8994cc67a091d32431939d3a05;p=openbsd Print AIA in rpki-client test utility --- 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 * @@ -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 * @@ -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 * @@ -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 * @@ -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,