summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions/connection.php2
-rw-r--r--functions/ocsp.php14
2 files changed, 8 insertions, 8 deletions
diff --git a/functions/connection.php b/functions/connection.php
index b88dcd0..600a35b 100644
--- a/functions/connection.php
+++ b/functions/connection.php
@@ -519,7 +519,7 @@ function ssl_conn_metadata($data) {
echo "<table class='table'>";
foreach ($data["ocsp_stapling"] as $key => $value) {
if ($key != "working") {
- echo "<tr><td>" . htmlspecialchars($key) . "</td><td>" . htmlspecialchars($value) . "</td></tr>";
+ echo "<tr><td>" . htmlspecialchars(ucfirst(str_replace('_', ' ', $key))) . "</td><td>" . htmlspecialchars($value) . "</td></tr>";
}
}
echo "</table>";
diff --git a/functions/ocsp.php b/functions/ocsp.php
index 12397f9..8a5e54e 100644
--- a/functions/ocsp.php
+++ b/functions/ocsp.php
@@ -38,13 +38,13 @@ function ocsp_stapling($host, $ip, $port) {
}
}
$result = array("working" => 1,
- "Cert Status" => $lines["Cert Status"],
- "This Update" => $lines["This Update"],
- "Next Update" => $lines["Next Update"],
- "Responder ID" => $lines["Responder Id"],
- "Hash Algorithm" => $lines["Hash Algorithm"],
- "Signature Algorithm" => $lines["Signature Algorithm"],
- "Issuer Name Hash" => $lines["Issuer Name Hash"]);
+ "cert_status" => $lines["Cert Status"],
+ "this_update" => $lines["This Update"],
+ "next_update" => $lines["Next Update"],
+ "responder_id" => $lines["Responder Id"],
+ "hash_algorithm" => $lines["Hash Algorithm"],
+ "signature_algorithm" => $lines["Signature Algorithm"],
+ "issuer_name_hash" => $lines["Issuer Name Hash"]);
}
return $result;
}