Verified Commit 8a2863f1 authored by Petr Špaček's avatar Petr Špaček Committed by Vladimír Čunát

trust_anchors: unify warning about 0 trust anchors

parent ec2de703
......@@ -416,6 +416,10 @@ local function keyset_publish(keyset)
end
end
end
if count == 0 then
warn('[ ta ] ERROR: no anchors are trusted for ' ..
kres.dname2str(keyset.owner) .. ' !')
end
return count
end
......@@ -470,8 +474,6 @@ update = function (keyset, new_keys, is_initial)
-- Start using the new TAs.
if keyset_publish(keyset) == 0 then
warn('[ ta ] WARNING: no anchors for ' .. kres.dname2str(keyset.owner)
.. ' are trusted!')
-- TODO: try to rebootstrap if for root?
return false
end
......@@ -541,8 +543,7 @@ local add_file = function (path, unmanaged)
-- Parse new keys, refresh eventually
if keyset_publish(keyset) == 0 then
warn('[ ta ] ERROR: anchors are trusted for ' .. owner_str .. ' !')
-- TODO: try to rebootstrap?
-- TODO: try to rebootstrap if for root?
end
refresh_plan(keyset, 10 * sec, false)
end
......
Markdown is supported
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