summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-03-28 09:45:23 +0400
committerAndrew Dolgov <[email protected]>2011-03-28 09:45:23 +0400
commit8de8bfb8712855ee391c3702604f2acb6ffa124e (patch)
tree9fdca34f3a5c680feb5a7ce6b416142c98bf129d /modules
parent3d72afa19a7e8e7f7691086dedba7c5f9631f42f (diff)
authenticate against a hash of identifyable information from certificate instead of only serial (refs #324)
Diffstat (limited to 'modules')
-rw-r--r--modules/pref-prefs.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php
index 1a2b2cd77..ab54ea174 100644
--- a/modules/pref-prefs.php
+++ b/modules/pref-prefs.php
@@ -435,17 +435,21 @@
} else if ($pref_name == "SSL_CERT_SERIAL") {
print "<input dojoType=\"dijit.form.ValidationTextBox\"
- id=\"SSL_CERT_SERIAL\"
+ id=\"SSL_CERT_SERIAL\" readonly=\"1\"
name=\"$pref_name\" value=\"$value\">";
- $cert_serial = htmlspecialchars($_SERVER["REDIRECT_SSL_CLIENT_M_SERIAL"]);
+ $cert_serial = htmlspecialchars(get_ssl_certificate_id());
if ($cert_serial) {
print " <button dojoType=\"dijit.form.Button\"
onclick=\"insertSSLserial('$cert_serial')\">" .
- __('Fill automatically') . "</button>";
+ __('Register') . "</button>";
}
+ print " <button dojoType=\"dijit.form.Button\"
+ onclick=\"insertSSLserial('')\">" .
+ __('Clear') . "</button>";
+
} else {
$regexp = ($type_name == 'integer') ? 'regexp="^\d*$"' : '';