1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-04 13:49:03 +00:00

Fix TLS SNI extension, by nnposter

This commit is contained in:
dmiller
2014-04-08 02:46:20 +00:00
parent 413bbf6e96
commit 162a30b3cf

View File

@@ -189,7 +189,7 @@ EXTENSION_HELPERS = {
["server_name"] = function (server_name)
-- Only supports host_name type (0), as per RFC
-- Support for other types could be added later
return bin.pack(">CSA", 0, #server_name, server_name)
return bin.pack(">P", bin.pack(">CP", 0, server_name))
end,
["max_fragment_length"] = tostring,
["client_certificate_url"] = tostring,