1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 13:11:28 +00:00

Consolidate error reporting

This commit is contained in:
dmiller
2017-02-26 03:49:07 +00:00
parent 32d85005d9
commit a7c8d25c56

View File

@@ -689,7 +689,7 @@ local function find_ciphers_group(host, port, protocol, group, scores)
-- TODO: certificate validation (date, self-signed, etc) -- TODO: certificate validation (date, self-signed, etc)
local c, err local c, err
if certs == nil then if certs == nil then
stdnse.debug1("Failed to retrieve certificate") err = "no certificate message"
else else
c, err = sslcert.parse_ssl_certificate(certs.certificates[1]) c, err = sslcert.parse_ssl_certificate(certs.certificates[1])
end end