Ignore SSL_OP_BIT(n) macro and update option.c #178

This commit is contained in:
Bruno Silvestre
2021-08-02 17:02:44 -03:00
parent 8cba350f37
commit 79bbc0bc3e
2 changed files with 25 additions and 4 deletions

View File

@ -60,9 +60,12 @@ local function loadoptions(file)
local options = {}
local f = assert(io.open(file, "r"))
for line in f:lines() do
local op = string.match(line, "define%s+(SSL_OP_%S+)")
if op then
table.insert(options, op)
local op = string.match(line, "define%s+(SSL_OP_BIT%()")
if not op then
op = string.match(line, "define%s+(SSL_OP_%S+)")
if op then
table.insert(options, op)
end
end
end
table.sort(options, function(a,b) return a<b end)