mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Use stdnse.fromhex in ssl-dh-params
This commit is contained in:
parent
d334620aa0
commit
14bd4e7899
1 changed files with 1 additions and 8 deletions
|
|
@ -114,14 +114,7 @@ local DHE_ALGORITHMS_EXPORT = {
|
|||
["DHE_DSS_EXPORT1024"] = 1
|
||||
}
|
||||
|
||||
-- Helper function to convert hex string to byte array
|
||||
local function fromhex(hexstr)
|
||||
return string.gsub(hexstr, "%s*(%x%x)%s*",
|
||||
function(c)
|
||||
return string.char(tonumber(c, 16))
|
||||
end
|
||||
)
|
||||
end
|
||||
local fromhex = stdnse.fromhex
|
||||
|
||||
-- Common Diffie-Hellman groups
|
||||
--
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue