From: Stefan Eissing Date: Fri, 11 Aug 2017 08:39:31 +0000 (+0000) Subject: Defined constants for md config directives. X-Git-Tag: 2.5.0-alpha~228 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed0e50d608561686343b996aa686cd14c16baa8c;p=apache Defined constants for md config directives. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1804759 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/md/mod_md_config.c b/modules/md/mod_md_config.c index f7d97af0f4..e5823453ff 100644 --- a/modules/md/mod_md_config.c +++ b/modules/md/mod_md_config.c @@ -29,6 +29,18 @@ #include "mod_md_private.h" #include "mod_md_config.h" +#define MD_CMD_MD "ManagedDomain" +#define MD_CMD_MD_SECTION "transitive, argv[0]); @@ -278,7 +290,7 @@ static const char *md_config_set_ca(cmd_parms *cmd, void *dc, const char *value) md_config_t *config = (md_config_t *)md_config_get(cmd->server); const char *err; - if (inside_section(cmd, "md->ca_url = value; } @@ -296,7 +308,7 @@ static const char *md_config_set_ca_proto(cmd_parms *cmd, void *dc, const char * md_config_t *config = (md_config_t *)md_config_get(cmd->server); const char *err; - if (inside_section(cmd, "md->ca_proto = value; } @@ -314,7 +326,7 @@ static const char *md_config_set_agreement(cmd_parms *cmd, void *dc, const char md_config_t *config = (md_config_t *)md_config_get(cmd->server); const char *err; - if (inside_section(cmd, "md->ca_agreement = value; } @@ -346,7 +358,7 @@ static const char *md_config_set_drive_mode(cmd_parms *cmd, void *dc, const char return apr_pstrcat(cmd->pool, "unknown MDDriveMode ", value, NULL); } - if (inside_section(cmd, "md->drive_mode = drive_mode; } @@ -402,7 +414,7 @@ static const char *md_config_set_renew_window(cmd_parms *cmd, void *dc, const ch return "MDRenewWindow has wrong format"; } - if (inside_section(cmd, "md->renew_window = timeout; } @@ -490,7 +502,7 @@ static const char *md_config_set_cha_tyes(cmd_parms *cmd, void *dc, const char *err; int i; - if (inside_section(cmd, "md->ca_challenges; } @@ -513,39 +525,37 @@ static const char *md_config_set_cha_tyes(cmd_parms *cmd, void *dc, } -#define AP_END_CMD AP_INIT_TAKE1(NULL, NULL, NULL, RSRC_CONF, NULL) - const command_rec md_cmds[] = { - AP_INIT_RAW_ARGS("