Skip to content

Commit cae775f

Browse files
committed
*) mod_md: update to version 2.4.29
- Fixed HTTP-01 challenges to not carry a final newline, as some ACME server fail to ignore it. [Michael Kaufmann (@mkauf)] - Fixed missing label+newline in server-status plain text output when MDStapling is enabled. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1922279 13f79535-47bb-0310-9956-ffa450edef68
1 parent 77a8be7 commit cae775f

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

changes-entries/md_v2.4.29.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*) mod_md: update to version 2.4.29
2+
- Fixed HTTP-01 challenges to not carry a final newline, as some ACME
3+
server fail to ignore it. [Michael Kaufmann (@mkauf)]
4+
- Fixed missing label+newline in server-status plain text output when
5+
MDStapling is enabled.

modules/md/md_acme_authz.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,8 @@ static apr_status_t cha_http_01_setup(md_acme_authz_cha_t *cha, md_acme_authz_t
263263
rv = md_store_load(store, MD_SG_CHALLENGES, authz->domain, MD_FN_HTTP01,
264264
MD_SV_TEXT, (void**)&data, p);
265265
if ((APR_SUCCESS == rv && strcmp(cha->key_authz, data)) || APR_STATUS_IS_ENOENT(rv)) {
266-
const char *content = apr_psprintf(p, "%s\n", cha->key_authz);
267266
rv = md_store_save(store, p, MD_SG_CHALLENGES, authz->domain, MD_FN_HTTP01,
268-
MD_SV_TEXT, (void*)content, 0);
267+
MD_SV_TEXT, (void*)cha->key_authz, 0);
269268
notify_server = 1;
270269
}
271270

modules/md/md_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
* @macro
2828
* Version number of the md module as c string
2929
*/
30-
#define MOD_MD_VERSION "2.4.28"
30+
#define MOD_MD_VERSION "2.4.29"
3131

3232
/**
3333
* @macro
3434
* Numerical representation of the version number of the md module
3535
* release. This is a 24 bit number with 8 bits for major number, 8 bits
3636
* for minor and 8 bits for patch. Version 1.2.3 becomes 0x010203.
3737
*/
38-
#define MOD_MD_VERSION_NUM 0x02041c
38+
#define MOD_MD_VERSION_NUM 0x02041d
3939

4040
#define MD_ACME_DEF_URL "https://acme-v02.api.letsencrypt.org/directory"
4141
#define MD_TAILSCALE_DEF_URL "file://localhost/var/run/tailscale/tailscaled.sock"

modules/md/mod_md_status.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ static void si_val_stapling(status_ctx *ctx, md_json_t *mdj, const status_info *
617617
apr_brigade_puts(ctx->bb, NULL, NULL, "on");
618618
}
619619
else {
620-
apr_brigade_printf(ctx->bb, NULL, NULL, "%s: on", ctx->prefix);
620+
apr_brigade_printf(ctx->bb, NULL, NULL, "%sStapling: on\n", ctx->prefix);
621621
}
622622
}
623623

0 commit comments

Comments
 (0)