summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorg Göri <[email protected]>2014-01-11 11:33:42 +0100
committerGeorg Göri <[email protected]>2014-01-11 11:33:42 +0100
commitac617ebc014f12680541f78bc3047931afe3f12c (patch)
treecac6d4c7de462acc2747936abf0abebe9a82b3be /include
parentde0d8d1088d8ab3505c9d775ec0dfb8bf1bea43d (diff)
Fixed get_ssl_certificate_id
Fixed in a way that it also retrieves client certificates as they are supplied by Apache
Diffstat (limited to 'include')
-rw-r--r--include/functions.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index a64f0978a..fce15b535 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -692,6 +692,12 @@
$_SERVER["REDIRECT_SSL_CLIENT_V_END"] .
$_SERVER["REDIRECT_SSL_CLIENT_S_DN"]);
}
+ if ($_SERVER["SSL_CLIENT_M_SERIAL"]) {
+ return sha1($_SERVER["SSL_CLIENT_M_SERIAL"] .
+ $_SERVER["SSL_CLIENT_V_START"] .
+ $_SERVER["SSL_CLIENT_V_END"] .
+ $_SERVER["SSL_CLIENT_S_DN"]);
+ }
return "";
}