]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: acme: allow empty payload in acme_jws_payload()
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 10 Apr 2025 16:43:42 +0000 (18:43 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 11 Apr 2025 23:29:27 +0000 (01:29 +0200)
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.

src/acme.c

index 10eae68b23c503b7c1924eb666160f3b4ba6f063..b77803b20d916aa9bd4dc1ee72fee5ae66759868 100644 (file)
@@ -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();