OpenBSD CVS

CVS log for src/usr.sbin/rpki-client/json.h


[BACK] Up to [local] / src / usr.sbin / rpki-client

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.3 / (download) - annotate - [select for diffs], Mon Jun 5 14:19:13 2023 UTC (12 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Add an extra argument compact to json_do_object() to instruct the parser
to dump this object on a single line.

While one can select on an object to object basis for arrays the compact
setting is inherited from the surrounding object.

Requested by job@, OK job@ tb@

Revision 1.2 / (download) - annotate - [select for diffs], Wed May 3 07:56:05 2023 UTC (13 months, 1 week ago) by claudio
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

Introduce json_do_string() a function that JSON escapes a string.

Implement json_do_printf() using json_do_string() and vasprintf().
json_do_string() only escapes the basic control chars (\b, \f, \n, \r and \t)
other control chars are considered an error. Also the forward slash is
not escaped since the JSON data is not embedded into HTML or XML.
With feedback from tb@ & millert@
OK tb@

Revision 1.1 / (download) - annotate - [select for diffs], Thu Apr 27 07:57:25 2023 UTC (13 months, 1 week ago) by claudio
Branch: MAIN

Reimplement output-json.c using json.c from bgpctl.

Much rejoice from tb@ and job@
OK tb@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.