Skip to content

Commit 679b1a4

Browse files
committed
mod_md: Remove seeparate versioning.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1935441 13f79535-47bb-0310-9956-ffa450edef68
1 parent 97bb11e commit 679b1a4

10 files changed

Lines changed: 5 additions & 52 deletions

File tree

modules/md/md.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include <apr_time.h>
2121

2222
#include "md_time.h"
23-
#include "md_version.h"
2423

2524
struct apr_array_header_t;
2625
struct apr_hash_t;

modules/md/md_acme.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
#include "md_store.h"
3535
#include "md_result.h"
3636
#include "md_util.h"
37-
#include "md_version.h"
3837

3938
#include "md_acme.h"
4039
#include "md_acme_acct.h"
@@ -647,7 +646,7 @@ apr_status_t md_acme_create(md_acme_t **pacme, apr_pool_t *p, const char *url,
647646
acme->url = url;
648647
acme->p = p;
649648
acme->user_agent = apr_psprintf(p, "%s mod_md/%s",
650-
base_product, MOD_MD_VERSION);
649+
base_product, AP_SERVER_BASEREVISION);
651650
acme->proxy_url = apr_pstrdup(p, proxy_url);
652651
acme->max_retries = 9;
653652
acme->ca_file = ca_file;

modules/md/md_acme_acct.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include "md_result.h"
3434
#include "md_store.h"
3535
#include "md_util.h"
36-
#include "md_version.h"
3736

3837
#include "md_acme.h"
3938
#include "md_acme_acct.h"

modules/md/md_acme_drive.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
#ifndef md_acme_drive_h
1717
#define md_acme_drive_h
1818

19+
#define MD_ACME_DEF_URL "https://acme-v02.api.letsencrypt.org/directory"
20+
1921
struct apr_array_header_t;
2022
struct md_acme_order_t;
2123
struct md_credentials_t;

modules/md/md_status.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ apr_status_t md_status_get_json(md_json_t **pjson, apr_array_header_t *mds,
326326
int i;
327327

328328
json = md_json_create(p);
329-
md_json_sets(MOD_MD_VERSION, json, MD_KEY_VERSION, NULL);
329+
md_json_sets(AP_SERVER_BASEREVISION, json, MD_KEY_VERSION, NULL);
330330
for (i = 0; i < mds->nelts; ++i) {
331331
md = APR_ARRAY_IDX(mds, i, const md_t *);
332332
status_get_md_json(&mdj, md, reg, ocsp, 0, p);

modules/md/md_store_fs.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include "md_store.h"
3434
#include "md_store_fs.h"
3535
#include "md_util.h"
36-
#include "md_version.h"
3736

3837
/**************************************************************************************************/
3938
/* file system based implementation of md_store_t */

modules/md/md_version.h

Lines changed: 0 additions & 42 deletions
This file was deleted.

modules/md/mod_md.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
#include "md_reg.h"
4545
#include "md_status.h"
4646
#include "md_util.h"
47-
#include "md_version.h"
4847
#include "md_acme.h"
4948
#include "md_acme_authz.h"
5049

@@ -878,7 +877,7 @@ static apr_status_t md_post_config_before_ssl(apr_pool_t *p, apr_pool_t *plog,
878877
}
879878
else {
880879
ap_log_error( APLOG_MARK, APLOG_INFO, 0, s, APLOGNO(10071)
881-
"mod_md (v%s), initializing...", MOD_MD_VERSION);
880+
"mod_md (v%s), initializing...", AP_SERVER_BASEREVISION);
882881
}
883882

884883
(void)plog;

modules/md/mod_md_drive.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
#include "md_result.h"
4242
#include "md_reg.h"
4343
#include "md_util.h"
44-
#include "md_version.h"
4544
#include "md_acme.h"
4645
#include "md_acme_authz.h"
4746

modules/md/mod_md_status.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
#include "md_log.h"
4141
#include "md_reg.h"
4242
#include "md_util.h"
43-
#include "md_version.h"
4443
#include "md_acme.h"
4544
#include "md_acme_authz.h"
4645

0 commit comments

Comments
 (0)