diff options
author | Stefan Eissing <icing@apache.org> | 2017-08-09 15:43:26 +0200 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2017-08-09 15:43:26 +0200 |
commit | 13ee3b3ecfb9657589b05ac07e37fb5f7422fad4 (patch) | |
tree | cc09dc512c8b2951b2a56417d635865b7b1bf419 /modules/md/md.h | |
parent | mod_md: v0.6.0 from github (diff) | |
download | apache2-13ee3b3ecfb9657589b05ac07e37fb5f7422fad4.tar.xz apache2-13ee3b3ecfb9657589b05ac07e37fb5f7422fad4.zip |
mod_md: v0.6.1 from github
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/trunk-md@1804529 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/md/md.h')
-rw-r--r-- | modules/md/md.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/md/md.h b/modules/md/md.h index 35bab07fdc..7f543a09e6 100644 --- a/modules/md/md.h +++ b/modules/md/md.h @@ -69,6 +69,7 @@ struct md_t { apr_interval_time_t renew_window;/* time before expiration that starts renewal */ struct apr_array_header_t *domains; /* all DNS names this MD includes */ + int transitive; /* != 0 iff VirtualHost names/aliases are auto-added */ md_drive_mode_t drive_mode; /* mode of obtaining credentials */ int must_staple; /* certificates should set the OCSP Must Staple extension */ @@ -116,6 +117,7 @@ struct md_t { #define MD_KEY_STATUS "status" #define MD_KEY_STORE "store" #define MD_KEY_TOKEN "token" +#define MD_KEY_TRANSITIVE "transitive" #define MD_KEY_TYPE "type" #define MD_KEY_URL "url" #define MD_KEY_URI "uri" @@ -140,7 +142,7 @@ struct md_t { /** * Determine if the Managed Domain contains a specific domain name. */ -int md_contains(const md_t *md, const char *domain); +int md_contains(const md_t *md, const char *domain, int case_sensitive); /** * Determine if the names of the two managed domains overlap. @@ -150,7 +152,7 @@ int md_domains_overlap(const md_t *md1, const md_t *md2); /** * Determine if the domain names are equal. */ -int md_equal_domains(const md_t *md1, const md_t *md2); +int md_equal_domains(const md_t *md1, const md_t *md2, int case_sensitive); /** * Determine if the domains in md1 contain all domains of md2. @@ -184,8 +186,8 @@ md_t *md_get_by_domain(struct apr_array_header_t *mds, const char *domain); md_t *md_get_by_dns_overlap(struct apr_array_header_t *mds, const md_t *md); /** - * Find the managed domain in the list that has the most overlaps in domains to the - * given md. + * Find the managed domain in the list that, for the given md, + * has the same name, or the most number of overlaps in domains */ md_t *md_find_closest_match(apr_array_header_t *mds, const md_t *md); |