mirror of
https://github.com/nmap/nmap.git
synced 2026-10-20 19:01:56 +00:00
sslcert: if -sV detects ssl, then no STARTTLS is needed
This commit is contained in:
parent
a047985f19
commit
553e827110
1 changed files with 6 additions and 0 deletions
|
|
@ -418,6 +418,9 @@ local SPECIALIZED_PREPARE_TLS_WITHOUT_RECONNECT = {
|
|||
-- @param port A port table with 'number' and 'service' keys
|
||||
-- @return A STARTTLS function or nil
|
||||
function getPrepareTLSWithoutReconnect(port)
|
||||
if port.service_tunnel == "ssl" then
|
||||
return nil
|
||||
end
|
||||
return (SPECIALIZED_PREPARE_TLS_WITHOUT_RECONNECT[port.number] or
|
||||
SPECIALIZED_PREPARE_TLS_WITHOUT_RECONNECT[port.service])
|
||||
end
|
||||
|
|
@ -429,6 +432,9 @@ end
|
|||
-- @param port A port table with 'number' and 'service' keys
|
||||
-- @return A STARTTLS function or nil
|
||||
function isPortSupported(port)
|
||||
if port.service_tunnel == "ssl" then
|
||||
return nil
|
||||
end
|
||||
return (SPECIALIZED_PREPARE_TLS[port.number] or
|
||||
SPECIALIZED_PREPARE_TLS[port.service])
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue