libmicrohttpd2

HTTP server C library (MHD 2.x, alpha)
Log | Files | Refs | README | LICENSE

commit e995c1ce5b5c64d967a328d46151c7ab2b7ad7eb
parent db4354649a0a483d44fb979f06e6d40c55b49edd
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date:   Thu, 20 Aug 2026 13:25:49 +0200

microhttpd2.h: added macro for ACME HTTP-01 challenge string

Diffstat:
Msrc/include/microhttpd2.h | 14++++++++++++++
Msrc/include/microhttpd2_preamble.h.in | 14++++++++++++++
2 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/src/include/microhttpd2.h b/src/include/microhttpd2.h @@ -2745,6 +2745,20 @@ MHD_FN_PAR_NONNULL_ALL_; */ /** + * The path prefix of the resource used by the ACME HTTP-01 challenge. + * + * The complete path is this prefix immediately followed by the challenge + * token provided by the ACME server. The resource is requested by + * plain HTTP (not HTTPS) on port 80 of the domain being validated. The + * path is case-sensitive and has to be matched exactly. + * See RFC 8555, section 8.3. + * + * @ingroup acme + */ +#define MHD_ACME_HTTP_01_CHALLENGE_PATH_PREFIX \ + "/.well-known/acme-challenge/" + +/** * Add or replace special certificate for ALPN challenge for ACME. * * Takes effect for connections accepted after this function returns. diff --git a/src/include/microhttpd2_preamble.h.in b/src/include/microhttpd2_preamble.h.in @@ -2745,6 +2745,20 @@ MHD_FN_PAR_NONNULL_ALL_; */ /** + * The path prefix of the resource used by the ACME HTTP-01 challenge. + * + * The complete path is this prefix immediately followed by the challenge + * token provided by the ACME server. The resource is requested by + * plain HTTP (not HTTPS) on port 80 of the domain being validated. The + * path is case-sensitive and has to be matched exactly. + * See RFC 8555, section 8.3. + * + * @ingroup acme + */ +#define MHD_ACME_HTTP_01_CHALLENGE_PATH_PREFIX \ + "/.well-known/acme-challenge/" + +/** * Add or replace special certificate for ALPN challenge for ACME. * * Takes effect for connections accepted after this function returns.