From 05c77cadd7ae366cb1e6d09d9bf44c0939ae2c51 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Fri, 8 Sep 2017 14:55:04 +0000 Subject: On the trunk: mod_md: v0.9.2: new directive 'MDHttpProxy' to define a proxy for outgoing connection, some minor bugfixes, twiddle the build system to avoid non-pic code generation. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1807774 13f79535-47bb-0310-9956-ffa450edef68 --- modules/md/md_reg.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules/md/md_reg.c') diff --git a/modules/md/md_reg.c b/modules/md/md_reg.c index 6a32508f97..4d1e217176 100644 --- a/modules/md/md_reg.c +++ b/modules/md/md_reg.c @@ -40,12 +40,14 @@ struct md_reg_t { int was_synched; int can_http; int can_https; + const char *proxy_url; }; /**************************************************************************************************/ /* life cycle */ -apr_status_t md_reg_init(md_reg_t **preg, apr_pool_t *p, struct md_store_t *store) +apr_status_t md_reg_init(md_reg_t **preg, apr_pool_t *p, struct md_store_t *store, + const char *proxy_url) { md_reg_t *reg; apr_status_t rv; @@ -55,7 +57,7 @@ apr_status_t md_reg_init(md_reg_t **preg, apr_pool_t *p, struct md_store_t *stor reg->protos = apr_hash_make(p); reg->can_http = 1; reg->can_https = 1; - + reg->proxy_url = proxy_url? apr_pstrdup(p, proxy_url) : NULL; rv = md_acme_protos_add(reg->protos, p); *preg = (rv == APR_SUCCESS)? reg : NULL; @@ -821,6 +823,7 @@ static apr_status_t init_proto_driver(md_proto_driver_t *driver, const md_proto_ driver->can_https = reg->can_https; driver->reg = reg; driver->store = md_reg_store_get(reg); + driver->proxy_url = reg->proxy_url; driver->md = md; driver->reset = reset; } -- cgit v1.2.3