mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 03:11:48 +00:00
Avoid attempting TLS over UDP protocols in sslcert.lua
This commit is contained in:
parent
37c3a16a27
commit
4db5bf502f
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue