1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 08:59:01 +00:00

Allow numeric TLS extensions for unassigned ExtensionTypes

This commit is contained in:
dmiller
2014-04-03 18:29:07 +00:00
parent 64ef503f5b
commit f081cf31bb

View File

@@ -778,7 +778,11 @@ function client_hello(t)
if t["extensions"] ~= nil then
-- Add specified extensions.
for extension, data in pairs(t["extensions"]) do
table.insert(extensions, bin.pack(">S", EXTENSIONS[extension]))
if type(extension) == "number" then
table.insert(extensions, bin.pack(">S", extension))
else
table.insert(extensions, bin.pack(">S", EXTENSIONS[extension]))
end
table.insert(extensions, bin.pack(">P", data))
end
end