diff options
author | Job Snijders <job@cvs.openbsd.org> | 2024-09-03 15:04:49 +0000 |
---|---|---|
committer | Job Snijders <job@cvs.openbsd.org> | 2024-09-03 15:04:49 +0000 |
commit | 66e231642733862aa0c531f45ba90d78df099cc9 (patch) | |
tree | 74a6492aa054215f28eb1736fabcd17715bcd112 /usr.sbin/rpki-client/output-json.c | |
parent | 97c9fe49f54506a8f29f35c1626f3af6c708b178 (diff) |
Also gate SPL statistics behind 'experimental' command line option
This changes the JSON output, without -x some keys are missing from 'metadata'
OK tb@
Diffstat (limited to 'usr.sbin/rpki-client/output-json.c')
-rw-r--r-- | usr.sbin/rpki-client/output-json.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/rpki-client/output-json.c b/usr.sbin/rpki-client/output-json.c index bc0695ef89f..d69d95f4c03 100644 --- a/usr.sbin/rpki-client/output-json.c +++ b/usr.sbin/rpki-client/output-json.c @@ -1,4 +1,4 @@ -/* $OpenBSD: output-json.c,v 1.49 2024/04/21 19:27:44 claudio Exp $ */ +/* $OpenBSD: output-json.c,v 1.50 2024/09/03 15:04:48 job Exp $ */ /* * Copyright (c) 2019 Claudio Jeker <claudio@openbsd.org> * @@ -47,9 +47,11 @@ outputheader_json(struct stats *st) json_do_int("roas", st->repo_tal_stats.roas); json_do_int("failedroas", st->repo_tal_stats.roas_fail); json_do_int("invalidroas", st->repo_tal_stats.roas_invalid); - json_do_int("spls", st->repo_tal_stats.spls); - json_do_int("failedspls", st->repo_tal_stats.spls_fail); - json_do_int("invalidspls", st->repo_tal_stats.spls_invalid); + if (experimental) { + json_do_int("spls", st->repo_tal_stats.spls); + json_do_int("failedspls", st->repo_tal_stats.spls_fail); + json_do_int("invalidspls", st->repo_tal_stats.spls_invalid); + } json_do_int("aspas", st->repo_tal_stats.aspas); json_do_int("failedaspas", st->repo_tal_stats.aspas_fail); json_do_int("invalidaspas", st->repo_tal_stats.aspas_invalid); |