Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Knot Resolver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
140
Issues
140
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Knot projects
Knot Resolver
Commits
108a78a2
Verified
Commit
108a78a2
authored
Jan 09, 2019
by
Vladimír Čunát
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trust_anchors nitpicks: silence luacheck warnings
parent
e789c969
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
daemon/lua/trust_anchors.lua.in
daemon/lua/trust_anchors.lua.in
+8
-8
No files found.
daemon/lua/trust_anchors.lua.in
View file @
108a78a2
...
...
@@ -545,12 +545,12 @@ local add_file = function (path, unmanaged)
trust_anchors.keysets[owner] = keyset
-- Parse new keys, refresh eventually
if keyset_publish(keyset) == 0 then
-- TODO: try to rebootstrap if for root?
elseif verbose() then
if keyset_publish(keyset) ~= 0 and verbose() then
log('[ ta ] installed trust anchors for domain ' .. owner_str .. ' are:\n'
.. trust_anchors.summary(owner))
end
-- TODO: if failed and for root, try to rebootstrap?
refresh_plan(keyset, 10 * sec, false)
end
...
...
@@ -572,7 +572,7 @@ local function ta_str(owner)
if #msg > 0 then
msg = msg .. 'WARNING! negative trust anchor also has an explicit TA\n'
end
for
idx
, ta in ipairs(trust_anchors.keysets[owner]) do
for
_
, ta in ipairs(trust_anchors.keysets[owner]) do
msg = msg .. kres.rr2str(ta) .. '\n'
end
return msg
...
...
@@ -622,9 +622,9 @@ trust_anchors = {
end
trust_anchors.insecure = list
end,
summary = function (owner)
if owner then -- single domain
return ta_str(owner)
summary = function (
single_
owner)
Petr Špaček
@pspacek
·
Jan 09, 2019
Contributor
+1
+1
Please
register
or
sign in
to reply
if
single_
owner then -- single domain
return ta_str(
single_
owner)
end
-- all domains
...
...
@@ -632,7 +632,7 @@ trust_anchors = {
local ta_count = 0
local seen = {}
for _, nta_str in pairs(trust_anchors.insecure) do
owner = kres.str2dname(nta_str)
local
owner = kres.str2dname(nta_str)
seen[owner] = true
msg = msg .. ta_str(owner)
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment