Commit 32e1f331 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

daemon/trust_anchors: fixed root key fetch

parent 84976b1d
......@@ -52,7 +52,8 @@ if not ffi_ok then
if not, 'r') then
local rr, err = bootstrap()
if not rr then print(err) return false end, 'w'):write(rr..'\n')
local keyfile = assert(, 'w'))
for line in io.lines(path) do
......@@ -255,7 +256,6 @@ local trust_anchors = {
-- Bootstrap if requested and keyfile doesn't exist
if not, 'r') then
local rr, msg = bootstrap()
if not rr then
error('you MUST obtain the root TA manually, see: '..
......@@ -175,7 +175,9 @@ local rrparser = {
file = function (path)
local zs = zs_scanner_t()
local ok, err = zs:open(path)
if not ok then error(err) end
if not ok then
return ok, err
local results = {}
while zs:parse() do
table.insert(results, zs:current_rr())
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment