Skip to content
Snippets Groups Projects
Verified Commit 0e9b529b authored by Petr Špaček's avatar Petr Špaček
Browse files

ta_sentinel: use names from draft-ietf-dnsop-kskroll-sentinel-01

Version 01 uses names incompatible with version 00.
parent c69d4633
No related branches found
No related tags found
1 merge request!497Implement draft-ietf-dnsop-kskroll-sentinel-01
......@@ -21,13 +21,13 @@ function M.layer.finish(state, req, pkt)
if not (kpkt:qclass() == kres.class.IN) then
return state end
local qname = kres.dname2str(qry:name())
local sentype, hexkeytag = qname:match('^_([iI][sS])%-[tT][aA]%-(%x+).')
local qname = kres.dname2str(qry:name()):lower()
local sentype, hexkeytag = qname:match('^kskroll%-sentinel%-(is)%-ta%-(%x+)%.')
if not sentype then
sentype, hexkeytag = qname:match('^_([nN][oO][tT])%-[tT][aA]%-(%x+).')
sentype, hexkeytag = qname:match('^kskroll%-sentinel%-(not)%-ta%-(%x+)%.')
end
if not sentype or not hexkeytag then
return state end -- regex did not match, exit
return state end -- pattern did not match, exit
-- end of hot path
local qkeytag = tonumber(hexkeytag, 16)
......@@ -36,7 +36,6 @@ function M.layer.finish(state, req, pkt)
if (qkeytag < 0) or (qkeytag > 0xffff) then
return state end -- invalid keytag?!, exit
sentype = sentype:lower()
if verbose() then
log('[ta_sentinel] key tag: ' .. qkeytag .. ', sentinel: ' .. sentype)
end
......
deckard @ dd660f91
Subproject commit 39772e7336d9465a81bae6e983cb7fd559f7f0bc
Subproject commit dd660f91a4ea5d39e5a7fead340ed37b193de095
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment