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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user