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

Function get_tls_log

web_server/public/javascripts/utilities.js:66–82  ·  view source on GitHub ↗

* ZGrab 2.0 and ZGrab have different schemas. * This is a convenience function to handle both conditions for full scans.

(results, index)

Source from the content-addressed store, hash-verified

64 * This is a convenience function to handle both conditions for full scans.
65 */
66function get_tls_log(results, index) {
67 let tls_log;
68
69 try {
70 if (Object.hasOwn(results[index]['data']['http'], 'result')) {
71 // ZGrab 2.0
72 tls_log = results[index]['data']['http']['result']['response']['request']['tls_log']['handshake_log'];
73 } else {
74 // ZGrab
75 tls_log = results[index]['data']['http']['response']['request']['tls_handshake'];
76 }
77 } catch (error) {
78 tls_log = {};
79 }
80
81 return tls_log;
82}
83
84/**
85 * ZGrab 2.0 and ZGrab have different schemas.

Callers 2

display_algorithm_certsFunction · 0.85
display_responseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected