mirror of
https://github.com/nmap/nmap.git
synced 2025-12-19 14:09:02 +00:00
Use stdnse.fromhex in ssl-dh-params
This commit is contained in:
@@ -114,14 +114,7 @@ local DHE_ALGORITHMS_EXPORT = {
|
|||||||
["DHE_DSS_EXPORT1024"] = 1
|
["DHE_DSS_EXPORT1024"] = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Helper function to convert hex string to byte array
|
local fromhex = stdnse.fromhex
|
||||||
local function fromhex(hexstr)
|
|
||||||
return string.gsub(hexstr, "%s*(%x%x)%s*",
|
|
||||||
function(c)
|
|
||||||
return string.char(tonumber(c, 16))
|
|
||||||
end
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Common Diffie-Hellman groups
|
-- Common Diffie-Hellman groups
|
||||||
--
|
--
|
||||||
|
|||||||
Reference in New Issue
Block a user