()
| 21 | var current_ca_name = ""; |
| 22 | |
| 23 | function 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 | |
| 54 | function display_ct_corp_certs(results) { |
| 55 | if (results.length === 0) { |
nothing calls this directly
no test coverage detected