Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
4a300102
Commit
4a300102
authored
Mar 02, 2010
by
JINMEI Tatuya
Browse files
RRSIG format fix
git-svn-id:
svn://bind10.isc.org/svn/bind10/trunk@1080
e5f2f494-b856-4b98-b285-d166d9295462
parent
30c5fcff
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dns/cpp/tests/testdata/gen-wiredata.py.in
View file @
4a300102
...
...
@@ -165,6 +165,7 @@ class EDNS:
class RRSIG:
rdlen = -1 # auto-calculate
covered = 1 # A
algorithm = 5 # RSA-SHA1
labels = -1 # auto-calculate (#labels of signer)
originalttl = 3600
...
...
@@ -186,15 +187,17 @@ class RRSIG:
labels = count_namelabels(self.signer)
f.write('\n# RRSIG RDATA (RDLEN=%d)\n' % rdlen)
f.write('%04x\n' % rdlen);
f.write('# Algorithm=%s Labels=%d OrigTTL=%d\n' %
(code_totext(self.algorithm, rdict_algorithm), labels,
f.write('# Covered=%s Algorithm=%s Labels=%d OrigTTL=%d\n' %
(code_totext(self.covered, rdict_rrtype),
code_totext(self.algorithm, rdict_algorithm), labels,
self.originalttl))
f.write('%02x %02x %04x\n' % (self.algorithm, labels, self.originalttl))
f.write('%04x %02x %02x %08x\n' % (self.covered, self.algorithm, labels,
self.originalttl))
f.write('# Expiration=%s, Inception=%s\n' %
(str(self.expiration), str(self.inception)))
f.write('%08x %08x\n' % (self.expiration, self.inception))
f.write('# Signer=%s and Signature\n' % self.signer)
f.write('%s %s\n' % (name_wire, sig_wire))
f.write('#
Tag=%d
Signer=%s and Signature\n' %
(self.tag,
self.signer)
)
f.write('
%04x
%s %s\n' % (
self.tag,
name_wire, sig_wire))
config_param = {'header' : (DNSHeader, header_xtables),
'question' : (DNSQuestion, question_xtables),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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