Skip to content
Snippets Groups Projects

daemon/lua/trust_anchors: don't crash when dealing with unknown algorhitm

Merged Tomas Krizek requested to merge key-rollover into master
1 file
+ 0
9
Compare changes
  • Side-by-side
  • Inline
  • 072a69b4
    It's impossible to add managed keysets unless ta_update is loaded,
    in which case ta_update.start() is called by trust_anchors.add_file().
    
    On ta_update unload, previously managed keys are flagged as unmanaged.
@@ -273,15 +273,6 @@ function ta_update.stop(zname)
end
end
-- immediatelly schedule key refresh for all managed TAs
function ta_update.init()
for zname, keyset in pairs(trust_anchors.keysets) do
if keyset.managed then
ta_update.start(zname)
end
end
end
-- stop all timers
function ta_update.deinit()
for zname, _ in pairs(tracked_tas) do
Loading