summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acme-client/json.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* whitespaceflorian2020-06-071-3/+3
|
* Swap arguments of calloc(3).florian2020-06-071-2/+2
| | | | | | 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!
* In case the order fails print the human readable reason from theflorian2020-05-101-4/+6
| | | | | | challenge objects that the server hopefully provides. input & OK deraadt OK beck, benno
* use the correct length to allocate the right amount, broken by previous.tedu2020-01-221-2/+2
| | | | | noticed by Matthew Martin ok deraadt
* set array length after allocation succeeds so free path doesn't deref null.tedu2020-01-221-2/+3
| | | | ok deraadt
* When the parser detects that it needs more tokens it returnsflorian2019-06-181-8/+12
| | | | | | | | | | | 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
* Implement elliptic curve account keys.florian2019-06-171-4/+53
| | | | | OK benno Input & OK tb
* Implement RFC 8555 "Automatic Certificate Management Environmentflorian2019-06-071-57/+177
| | | | | | | | | | | | | (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
* make struct chng.status a enum for readability.benno2019-01-311-8/+8
| | | | ok florian@
* Deprecate agreement url config option and get the information from theflorian2017-11-271-2/+37
| | | | | | | | 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
* Make returns consistent and remove parentheses per style(9).jsing2017-01-241-41/+41
| | | | | | Transformed with coccinelle. Requested by and ok tb@
* Complete jsing's coccinelle cleanup... by handderaadt2017-01-241-2/+2
| | | | ok jsing
* Replace comparisons between a constant or enum and an expression, withjsing2017-01-241-44/+44
| | | | | | | | | a comparison between the expression and the constant or enum. This significantly improves readability. Transformed with coccinelle. Requested by deraadt@
* convert some ifs to switches. ok millert tbtedu2016-09-131-10/+20
|
* A small amount more KNF to make this easier on our eyes. Not going furtherderaadt2016-09-131-42/+46
| | | | | than this. ok florian
* Inconsistant use of case (value): idiom drives me nuts, I have no ideaderaadt2016-09-131-5/+5
| | | | what purpose it was intended to serve.
* we don't have config.hflorian2016-09-011-4/+1
|
* whitespacebenno2016-08-311-61/+61
|
* Import Kristaps' letskencrypt and call it acme-client in tree.florian2016-08-311-0/+632
OK to get it in deraadt@ (and probably beck@) At least deraadt@, beck@ and otto@ are fine with the name and the disagreements stopped.