1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 20:29:03 +00:00

Avoid attempting TLS over UDP protocols in sslcert.lua

This commit is contained in:
dmiller
2016-03-25 14:02:04 +00:00
parent 37c3a16a27
commit 4db5bf502f

View File

@@ -640,6 +640,9 @@ local SPECIALIZED_WRAPPED_TLS_WITHOUT_RECONNECT = {
-- @param port A port table with 'number' and 'service' keys
-- @return A STARTTLS function or nil
function getPrepareTLSWithoutReconnect(port)
if port.protocol == 'udp' then
return nil
end
if ( port.version and port.version.service_tunnel == 'ssl') then
return nil
end
@@ -656,6 +659,9 @@ end
-- @param port A port table with 'number' and 'service' keys
-- @return A STARTTLS function or nil
function isPortSupported(port)
if port.protocol == 'udp' then
return nil
end
if ( port.version and port.version.service_tunnel == 'ssl') then
return nil
end