mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-04-18 20:22:48 +02:00
BUG/MINOR: acme: read the wildcard flag from the authorization response
The wildcard field was declared and used when building the dns-persist-01 TXT record value (policy=wildcard suffix), but was never populated from the server's authorization response. Add the missing mjson_get_bool() call to read $.wildcard before saving auth->dns.
This commit is contained in:
parent
a5e732ed1d
commit
53679fe5f6
@ -1785,6 +1785,8 @@ int acme_res_auth(struct task *task, struct acme_ctx *ctx, struct acme_auth *aut
|
||||
}
|
||||
t2->data = ret;
|
||||
|
||||
mjson_get_bool(hc->res.buf.area, hc->res.buf.data, "$.wildcard", &wildcard);
|
||||
|
||||
auth->dns = istdup(ist2(t2->area, t2->data));
|
||||
|
||||
ret = mjson_get_string(hc->res.buf.area, hc->res.buf.data, "$.status", trash.area, trash.size);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user