summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apache/mod_caucho/files/mod_caucho-3.1.2-ssl.patch')
-rw-r--r--www-apache/mod_caucho/files/mod_caucho-3.1.2-ssl.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/www-apache/mod_caucho/files/mod_caucho-3.1.2-ssl.patch b/www-apache/mod_caucho/files/mod_caucho-3.1.2-ssl.patch
new file mode 100644
index 000000000000..1cfcdc397b8a
--- /dev/null
+++ b/www-apache/mod_caucho/files/mod_caucho-3.1.2-ssl.patch
@@ -0,0 +1,20 @@
+diff -Nru resin-3.1.1.vanilla/modules/c/src/apache2/mod_caucho.c resin-3.1.1/modules/c/src/apache2/mod_caucho.c
+--- resin-3.1.1.vanilla/modules/c/src/apache2/mod_caucho.c 2007-04-13 15:41:18.000000000 +0200
++++ resin-3.1.1/modules/c/src/apache2/mod_caucho.c 2007-04-13 16:00:24.000000000 +0200
+@@ -582,6 +582,16 @@
+ }
+ }
+ #endif
++ /* Add SSL Client certificate: (requires SSLOptions +StdEnvVars) */
++ {
++ int i;
++ char **env = (char **)ap_create_environment(r->pool, r->subprocess_env);
++ for (i = 0; env[i]; ++i) {
++ char *name = strsep(&(env[i]), "=");
++ if (strncmp(name, "SSL_CLIENT_CERT", 16) == 0)
++ cse_write_string(s, CSE_CLIENT_CERT, env[i]);
++ }
++ }
+ }
+
+ /**