chiark / gitweb /
www-cgi/: Yet more environment variables to be passed about.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 30 Jan 2013 01:14:36 +0000 (01:14 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 2 Feb 2013 13:31:04 +0000 (13:31 +0000)
The `SSL_*' variables are used to pass information about SSL or TLS,
including the cipher suite in use, and the status of client
authentication.

The `REDIRECT_*' variables are used to pass information about a failed
request to a CGI script run as an Apache `ErrorDocument' or similar.

www-cgi/ucgi.c
www-cgi/ucgitarget.c

index a2ebe64a4b0e18d9247216bfd71c4b6965d5069e..5e6a1b863f7d004332483f6b31a22607fa2dacd4 100644 (file)
@@ -41,11 +41,13 @@ static const char *const default_envok[] = {
   "PATH_INFO",
   "PATH_TRANSLATED",
   "QUERY_STRING",
+  "REDIRECT_*",
   "REMOTE_*",
   "REQUEST_METHOD",
   "REQUEST_URI",
   "SCRIPT_*",
   "SERVER_*",
+  "SSL_*",
   0
 };
 
index 6c579b69ff5aad5ee7ba6f1c0488f43d68b929af..030f0680e04ab1f5e4f9144f26bdaa18016c142f 100644 (file)
@@ -60,6 +60,11 @@ static const char *const default_envok[]= {
   "PATH_INFO",
   "PATH_TRANSLATED",
   "QUERY_STRING",
+  "REDIRECT_HANDLER",
+  "REDIRECT_SCRIPT_URI",
+  "REDIRECT_SCRIPT_URL",
+  "REDIRECT_STATUS",
+  "REDIRECT_URL",
   "REMOTE_ADDR",
   "REMOTE_HOST",
   "REMOTE_USER",
@@ -77,6 +82,10 @@ static const char *const default_envok[]= {
   "SERVER_PROTOCOL",
   "SERVER_SIGNATURE",
   "SERVER_SOFTWARE",
+  "SSL_CIPHER",
+  "SSL_CLIENT_S_DN",
+  "SSL_CLIENT_VERIFY",
+  "SSL_PROTOCOL",
   0
 };