From 564fbf9bcb4ff56ff2fcbc018fd5a85cdfeb4ea2 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 30 Jan 2013 01:14:36 +0000 Subject: [PATCH] www-cgi/: Yet more environment variables to be passed about. 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 | 2 ++ www-cgi/ucgitarget.c | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/www-cgi/ucgi.c b/www-cgi/ucgi.c index a2ebe64..5e6a1b8 100644 --- a/www-cgi/ucgi.c +++ b/www-cgi/ucgi.c @@ -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 }; diff --git a/www-cgi/ucgitarget.c b/www-cgi/ucgitarget.c index 6c579b6..030f068 100644 --- a/www-cgi/ucgitarget.c +++ b/www-cgi/ucgitarget.c @@ -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 }; -- 2.30.2