OpenBSD CVS

CVS log for src/usr.sbin/acme-client/json.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.21 / (download) - annotate - [select for diffs], Mon Sep 14 16:00:17 2020 UTC (3 years, 8 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, HEAD
Changes since 1.20: +14 -4 lines
Diff to previous 1.20 (colored)

We need to be able to provide contact information to use the
buypass.com acme api.
From Bartosz Kuzma (bartosz.kuzma AT release11.com), thanks!
OK beck, deraadt

Revision 1.20 / (download) - annotate - [select for diffs], Mon Sep 14 13:49:13 2020 UTC (3 years, 8 months ago) by florian
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

Report what's wrong when account creation fails instead of a generic
http error.
OK beck

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jun 7 13:29:52 2020 UTC (3 years, 11 months ago) by florian
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

whitespace

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jun 7 13:28:17 2020 UTC (3 years, 11 months ago) by florian
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Swap arguments of calloc(3).
While it doesn't matter for calloc, it's easier on the eyes to always
list the number of elements first and then the size.
From Donovan Watteau ( contrib AT dwatteau.fr), Thanks!

Revision 1.17 / (download) - annotate - [select for diffs], Sun May 10 17:34:07 2020 UTC (4 years ago) by florian
Branch: MAIN
Changes since 1.16: +6 -4 lines
Diff to previous 1.16 (colored)

In case the order fails print the human readable reason from the
challenge objects that the server hopefully provides.
input & OK deraadt
OK beck, benno

Revision 1.16 / (download) - annotate - [select for diffs], Wed Jan 22 22:25:22 2020 UTC (4 years, 4 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

use the correct length to allocate the right amount, broken by previous.
noticed by Matthew Martin
ok deraadt

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jan 22 06:24:43 2020 UTC (4 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.14: +3 -2 lines
Diff to previous 1.14 (colored)

set array length after allocation succeeds so free path doesn't deref null.
ok deraadt

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jun 18 18:50:07 2019 UTC (4 years, 11 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.13: +12 -8 lines
Diff to previous 1.13 (colored)

When the parser detects that it needs more tokens it returns
JSMN_ERROR_NOMEM.
We then need to allocate more tokens and call the parser with its
current state again. It will continue where it left of.
For this to work we also need to pass in the old tokens from the
previous run and not just more space.

Found the hard way by Renaud Allard.
OK millert

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jun 17 12:42:52 2019 UTC (4 years, 11 months ago) by florian
Branch: MAIN
Changes since 1.12: +53 -4 lines
Diff to previous 1.12 (colored)

    Implement elliptic curve account keys.
    OK benno
    Input & OK tb

Revision 1.12 / (download) - annotate - [select for diffs], Fri Jun 7 08:07:52 2019 UTC (4 years, 11 months ago) by florian
Branch: MAIN
Changes since 1.11: +176 -56 lines
Diff to previous 1.11 (colored)

Implement RFC 8555 "Automatic Certificate Management Environment
(ACME)" to be able to talk to the v02 Let's Encrypt API.

With this acme-client(1) will no longer be able to talk to the v01
API. Users must change the api url in /etc/acme-client.conf to
https://acme-v02.api.letsencrypt.org/directory
Existing accounts (and certs of course) stay valid and after the url
change acme-client will be able to renew certs.

Tested by Renaud Allard and benno
Input & OK benno

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jan 31 15:55:48 2019 UTC (5 years, 4 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.10: +8 -8 lines
Diff to previous 1.10 (colored)

make struct chng.status a enum for readability.
ok florian@

Revision 1.10 / (download) - annotate - [select for diffs], Mon Nov 27 01:58:52 2017 UTC (6 years, 6 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.9: +37 -2 lines
Diff to previous 1.9 (colored)

Deprecate agreement url config option and get the information from the
directory call. This way we don't need to update the acme-client.conf
file every time it changes. Still parse the option, ignore and warn about
it for a release. Sysmerge should be able to handle the removal.
"nice" deraadt@
OK benno

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jan 24 13:32:55 2017 UTC (7 years, 4 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.8: +41 -41 lines
Diff to previous 1.8 (colored)

Make returns consistent and remove parentheses per style(9).

Transformed with coccinelle.

Requested by and ok tb@

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jan 24 12:53:52 2017 UTC (7 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)


Complete jsing's coccinelle cleanup... by hand
ok jsing

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jan 24 12:05:14 2017 UTC (7 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.6: +44 -44 lines
Diff to previous 1.6 (colored)

Replace comparisons between a constant or enum and an expression, with
a comparison between the expression and the constant or enum. This
significantly improves readability.

Transformed with coccinelle.

Requested by deraadt@

Revision 1.6 / (download) - annotate - [select for diffs], Tue Sep 13 20:09:54 2016 UTC (7 years, 8 months ago) by tedu
Branch: MAIN
Changes since 1.5: +20 -10 lines
Diff to previous 1.5 (colored)

convert some ifs to switches. ok millert tb

Revision 1.5 / (download) - annotate - [select for diffs], Tue Sep 13 17:13:37 2016 UTC (7 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +46 -42 lines
Diff to previous 1.4 (colored)

A small amount more KNF to make this easier on our eyes.  Not going further
than this.
ok florian

Revision 1.4 / (download) - annotate - [select for diffs], Tue Sep 13 16:04:51 2016 UTC (7 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +5 -5 lines
Diff to previous 1.3 (colored)

Inconsistant use of case (value): idiom drives me nuts, I have no idea
what purpose it was intended to serve.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Sep 1 00:35:22 2016 UTC (7 years, 9 months ago) by florian
Branch: MAIN
Changes since 1.2: +1 -4 lines
Diff to previous 1.2 (colored)

we don't have config.h

Revision 1.2 / (download) - annotate - [select for diffs], Wed Aug 31 23:19:50 2016 UTC (7 years, 9 months ago) by benno
Branch: MAIN
Changes since 1.1: +61 -61 lines
Diff to previous 1.1 (colored)

whitespace

Revision 1.1 / (download) - annotate - [select for diffs], Wed Aug 31 22:01:42 2016 UTC (7 years, 9 months ago) by florian
Branch: MAIN

Import Kristaps' letskencrypt and call it acme-client in tree.
OK to get it in deraadt@ (and probably beck@)

At least deraadt@, beck@ and otto@ are fine with the name and the
disagreements stopped.

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.