]> git.kaiwu.me - haproxy.git/commit
MINOR: acme/lua: implement ACME.challenge_ready() Lua function
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 10 Jun 2026 13:12:51 +0000 (15:12 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 11 Jun 2026 13:01:38 +0000 (15:01 +0200)
commit784f972a6f085c9ba61256673330cc824fc3c9c1
tree3ea0926370dd7551b760ed12d42d79d83e7d4d29
parent5c0733db9a13516cd664926bd4273844db0ec98d
MINOR: acme/lua: implement ACME.challenge_ready() Lua function

Add a new ACME global Lua table with a challenge_ready(crt, dns) method
that wraps acme_challenge_ready(). It marks the ACME challenge for domain
<dns> in certificate <crt> as ready and returns the number of remaining
challenges, or 0 when all challenges are ready and validation has been
triggered. A Lua error is raised if the certificate or domain is not found.

The ACME table is registered for each lua_State via the new
REGISTER_HLUA_STATE_INIT() mechanism.
doc/lua-api/index.rst
src/acme.c