1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-20 05:09:02 +00:00

Ignore protocol mismatch in some more cases.

This commit is contained in:
dmiller
2017-02-24 16:28:33 +00:00
parent 189e6ac201
commit 91dade9325

View File

@@ -630,7 +630,12 @@ local function find_ciphers_group(host, port, protocol, group, scores)
end
if server_hello.protocol ~= protocol then
ctx_log(1, protocol, "Protocol rejected. cipher: %s", server_hello.cipher)
protocol_worked = protocol_worked or nil
-- Some implementations will do this if a cipher is supported in some
-- other protocol version but not this one. Gotta keep trying.
if not remove(group, server_hello.cipher) then
-- But if we didn't even offer this cipher, then give up. Crazy!
protocol_worked = protocol_worked or nil
end
break
else
protocol_worked = true