MCPcopy Index your code
hub / github.com/mozilla/cipherscan / result_cache

Function result_cache

cscan.py:122–126  ·  view source on GitHub ↗

Perform scan if config is not in results, caches result.

(name, conf)

Source from the content-addressed store, hash-verified

120 if predicate(configs[name]))
121
122 def result_cache(name, conf):
123 """Perform scan if config is not in results, caches result."""
124 return results[name] if name in results \
125 else results.setdefault(name, scan_with_config(host, port, conf,
126 hostname))
127
128 def conf_iterator(predicate):
129 """

Callers 1

conf_iteratorFunction · 0.85

Calls 1

scan_with_configFunction · 0.85

Tested by

no test coverage detected