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

Function search_ct

web_server/public/javascripts/api.js:513–525  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

511}
512
513function search_ct(type, value) {
514 var url = "";
515 var query = "";
516 if (type === "ip") {
517 url = "/api/v1.0/ct/ip";
518 query = "?ip=" + value;
519 } else if (type === "domain") {
520 url = "/api/v1.0/ct/common_name";
521 query = "?cn=" + value;
522 }
523
524 make_get_request(url + query, ctResults, null, "ct");
525}
526
527function update_censys_preview(ev) {
528 if (ev == null || ev.detail == null) {

Callers 1

queriesFunction · 0.85

Calls 1

make_get_requestFunction · 0.85

Tested by

no test coverage detected