mirror of
https://github.com/nmap/nmap.git
synced 2025-12-25 08:59:01 +00:00
Applied patches from Dan Miller to fix bugs in http and sslcert libraries;
http://seclists.org/nmap-dev/2012/q2/696
This commit is contained in:
@@ -200,6 +200,9 @@ function getCertificate(host, port)
|
||||
end
|
||||
end
|
||||
local cert = socket:get_ssl_certificate()
|
||||
if ( cert == nil ) then
|
||||
return false, "Unable to get cert"
|
||||
end
|
||||
|
||||
host.registry["ssl-cert"] = host.registry["ssl-cert"] or {}
|
||||
host.registry["ssl-cert"][port.number] = host.registry["ssl-cert"][port.number] or {}
|
||||
|
||||
Reference in New Issue
Block a user