diff options
author | Job Snijders <job@cvs.openbsd.org> | 2022-07-14 13:24:57 +0000 |
---|---|---|
committer | Job Snijders <job@cvs.openbsd.org> | 2022-07-14 13:24:57 +0000 |
commit | 7376c32e189b1836882919ccbbb46d05c881348e (patch) | |
tree | e8f4e55b8ab97679b578fc1befd2420ad703abef /usr.sbin/rpki-client | |
parent | ea1b057c794a90421b389f0940b859e19a6c09ff (diff) |
Fix JSON output in filemode for TALs
OK claudio@
Diffstat (limited to 'usr.sbin/rpki-client')
-rw-r--r-- | usr.sbin/rpki-client/print.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/rpki-client/print.c b/usr.sbin/rpki-client/print.c index a625f2f151e..7f7bbb4b6dc 100644 --- a/usr.sbin/rpki-client/print.c +++ b/usr.sbin/rpki-client/print.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print.c,v 1.13 2022/05/15 16:43:34 tb Exp $ */ +/* $OpenBSD: print.c,v 1.14 2022/07/14 13:24:56 job Exp $ */ /* * Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org> * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> @@ -91,15 +91,15 @@ tal_print(const struct tal *p) if (outformats & FORMAT_JSON) { printf("\t\"type\": \"tal\",\n"); - printf("\t\"name\": %s\n", p->descr); - printf("\t\"ski\": %s\n", pretty_key_id(ski)); + printf("\t\"name\": \"%s\",\n", p->descr); + printf("\t\"ski\": \"%s\",\n", pretty_key_id(ski)); printf("\t\"trust_anchor_locations\": ["); for (i = 0; i < p->urisz; i++) { printf("\"%s\"", p->uri[i]); if (i + 1 < p->urisz) printf(", "); } - printf("]\n"); + printf("],\n"); } else { printf("Trust anchor name: %s\n", p->descr); printf("Subject key identifier: %s\n", pretty_key_id(ski)); |