summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2014-12-02 13:20:21 +0100
committerJeff Trawick <trawick@apache.org>2014-12-02 13:20:21 +0100
commitd49e6f0ad9037ba42ce8510f8e7e61a8875183b7 (patch)
tree8688e1c2dfed971351de0273c2ecc0e68c72324d /include
parentFix curly braces style (diff)
downloadapache2-d49e6f0ad9037ba42ce8510f8e7e61a8875183b7.tar.xz
apache2-d49e6f0ad9037ba42ce8510f8e7e61a8875183b7.zip
core: Add CGIPassAuth directive to control whether HTTP authorization
headers are passed to scripts as CGI variables. PR: 56855 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1642847 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r--include/ap_mmn.h4
-rw-r--r--include/http_core.h9
2 files changed, 12 insertions, 1 deletions
diff --git a/include/ap_mmn.h b/include/ap_mmn.h
index 17f83f6555..8991ce0587 100644
--- a/include/ap_mmn.h
+++ b/include/ap_mmn.h
@@ -473,6 +473,8 @@
* 20140627.8 (2.5.0-dev) Add ap_set_listencbratio(), ap_close_listeners_ex(),
* ap_duplicate_listeners(), ap_num_listen_buckets and
* ap_have_so_reuseport to ap_listen.h.
+ * 20140627.9 (2.5.0-dev) Add cgi_pass_auth and AP_CGI_PASS_AUTH_* to
+ * core_dir_config
*/
#define MODULE_MAGIC_COOKIE 0x41503235UL /* "AP25" */
@@ -480,7 +482,7 @@
#ifndef MODULE_MAGIC_NUMBER_MAJOR
#define MODULE_MAGIC_NUMBER_MAJOR 20140627
#endif
-#define MODULE_MAGIC_NUMBER_MINOR 8 /* 0...n */
+#define MODULE_MAGIC_NUMBER_MINOR 9 /* 0...n */
/**
* Determine if the server's current MODULE_MAGIC_NUMBER is at least a
diff --git a/include/http_core.h b/include/http_core.h
index 85ca580478..2143d5a74d 100644
--- a/include/http_core.h
+++ b/include/http_core.h
@@ -624,6 +624,15 @@ typedef struct {
/** Named back references */
apr_array_header_t *refs;
+#define AP_CGI_PASS_AUTH_OFF (0)
+#define AP_CGI_PASS_AUTH_ON (1)
+#define AP_CGI_PASS_AUTH_UNSET (2)
+ /** CGIPassAuth: Whether HTTP authorization headers will be passed to
+ * scripts as CGI variables; affects all modules calling
+ * ap_add_common_vars(), as well as any others using this field as
+ * advice
+ */
+ unsigned int cgi_pass_auth : 2;
} core_dir_config;
/* macro to implement off by default behaviour */