MCPcopy Create free account
hub / github.com/adobe/Marinus / buildPage

Function buildPage

web_server/public/javascripts/certs.js:23–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21var current_ca_name = "";
22
23function buildPage() {
24 var path = window.location.pathname;
25 certSource = qs("source");
26 if (certSource == null) {
27 certSource = "zgrab";
28 }
29
30 recursiveResponse = qs("recursive");
31 if (recursiveResponse == null) {
32 recursiveResponse = true;
33 }
34
35 if (path === "/reports/ct_corp_ssl") {
36 document.getElementById("excludeExpired").addEventListener("change", reload_corp_certs);
37 fetch_ct_corp_certs(toggleState);
38 } else if (path === "/reports/scan_corp_certs") {
39 fetch_corp_certs();
40 } else if (path === "/reports/scan_expired_ssl") {
41 fetch_expired_certs_2k();
42 fetch_expired_certs();
43 } else if (path === "/reports/scan_algorithm_ssl") {
44 fetch_algorithm_certs();
45 } else if (path === "/reports/display_cert") {
46 fetch_certificate();
47 } else if (path === "/reports/ct_issuers") {
48 fetch_issuer_list();
49 } else if (path === "/reports/hosts_by_cas") {
50 fetch_scan_ca_list();
51 }
52}
53
54function display_ct_corp_certs(results) {
55 if (results.length === 0) {

Callers

nothing calls this directly

Calls 9

qsFunction · 0.85
fetch_ct_corp_certsFunction · 0.85
fetch_corp_certsFunction · 0.85
fetch_expired_certs_2kFunction · 0.85
fetch_expired_certsFunction · 0.85
fetch_algorithm_certsFunction · 0.85
fetch_certificateFunction · 0.85
fetch_issuer_listFunction · 0.85
fetch_scan_ca_listFunction · 0.85

Tested by

no test coverage detected