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.
This commit is contained in:
parent
4842c5ea8c
commit
7231bf5726
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user