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 a2ebe64..5e6a1b8 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 6c579b6..030f068 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
 };