mirror of
https://github.com/nmap/nmap.git
synced 2026-06-26 03:03:55 +00:00
Allow numeric TLS extensions for unassigned ExtensionTypes
This commit is contained in:
parent
64ef503f5b
commit
f081cf31bb
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue