From: William Lallemand Date: Thu, 10 Apr 2025 16:43:42 +0000 (+0200) Subject: MINOR: acme: allow empty payload in acme_jws_payload() X-Git-Tag: v3.2-dev11~92 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7231bf5726031c34d3fc6110dc7cfc04769e48ae;p=thirdparty%2Fhaproxy.git MINOR: acme: allow empty payload in acme_jws_payload() Some ACME requests are required to have a JWS with an empty payload, let's be more flexible and allow this function to have an empty buffer. --- diff --git a/src/acme.c b/src/acme.c index 10eae68b2..b77803b20 100644 --- a/src/acme.c +++ b/src/acme.c @@ -539,11 +539,6 @@ int acme_jws_payload(struct buffer *req, struct ist nonce, struct ist url, EVP_P int ret = 1; - if (req->data == 0) { - memprintf(errmsg, "no input data"); - goto error; - } - b64payload = alloc_trash_chunk(); b64prot = alloc_trash_chunk(); jwk = alloc_trash_chunk();