self.signer.to_wire(file, None, origin)
file.write(self.signature)
+ def to_digestable(self, origin=None):
+ return struct.pack('!HBBIIIH', self.type_covered,
+ self.algorithm, self.labels,
+ self.original_ttl, self.expiration,
+ self.inception, self.key_tag) + \
+ self.signer.to_digestable(origin) + \
+ self.signature
+
@classmethod
def from_wire(cls, rdclass, rdtype, wire, current, rdlen, origin=None):
header = struct.unpack('!HBBIIIH', wire[current: current + 18])
#
# types that don't have names: HINFO
#
- # types where the canonical form isn't relevant: RRSIG
- #
cases = [
('SOA', 'NAME NAME 1 2 3 4 5'),
('AFSDB', '0 NAME'),
('RP', 'NAME NAME'),
('RT', '0 NAME'),
('SRV', '0 0 0 NAME'),
+ ('RRSIG',
+ 'A 1 3 3600 20200701000000 20200601000000 1 NAME Ym9ndXM=')
]
for rdtype, text in cases:
upper_origin = dns.name.from_text('EXAMPLE')