]> git.wh0rd.org Git - tt-rss.git/commitdiff
Fixed get_ssl_certificate_id
authorGeorg Göri <georg@makeclean.org>
Sat, 11 Jan 2014 10:33:42 +0000 (11:33 +0100)
committerGeorg Göri <georg@makeclean.org>
Sat, 11 Jan 2014 10:33:42 +0000 (11:33 +0100)
Fixed in a way that it also retrieves client certificates as they are supplied by Apache

include/functions.php

index a64f0978a64dbf9ca01c7e557a1f419e999d8007..fce15b53539266204d0ce1deeaa05ac7aac33f71 100644 (file)
                                $_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 "";
        }