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

trust_anchors: add parameter check to set_insecure

parent 8a2863f1
......@@ -582,6 +582,7 @@ trust_anchors = {
end,
-- Negative TA management
set_insecure = function (list)
assert(type(list) == 'table', 'parameter must be list of domain names (e.g. {"a.test", "b.example"})')
local store = kres.context().negative_anchors
C.kr_ta_clear(store)
for i = 1, #list do
......
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