Skip to content

Commit

Permalink
Allow custom chunksize in to_text of SSHFP, DSBase, TLSABase
Browse files Browse the repository at this point in the history
  • Loading branch information
peterthomassen committed Dec 29, 2020
1 parent 18feb95 commit a927fa3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dns/rdtypes/ANY/SSHFP.py
Expand Up @@ -43,7 +43,7 @@ def to_text(self, origin=None, relativize=True, **kw):
return '%d %d %s' % (self.algorithm,
self.fp_type,
dns.rdata._hexify(self.fingerprint,
chunksize=128))
chunksize=kw.get('chunksize', 128)))

@classmethod
def from_text(cls, rdclass, rdtype, tok, origin=None, relativize=True,
Expand Down
2 changes: 1 addition & 1 deletion dns/rdtypes/dsbase.py
Expand Up @@ -43,7 +43,7 @@ def to_text(self, origin=None, relativize=True, **kw):
return '%d %d %d %s' % (self.key_tag, self.algorithm,
self.digest_type,
dns.rdata._hexify(self.digest,
chunksize=128))
chunksize=kw.get('chunksize', 128)))

@classmethod
def from_text(cls, rdclass, rdtype, tok, origin=None, relativize=True,
Expand Down
2 changes: 1 addition & 1 deletion dns/rdtypes/tlsabase.py
Expand Up @@ -45,7 +45,7 @@ def to_text(self, origin=None, relativize=True, **kw):
self.selector,
self.mtype,
dns.rdata._hexify(self.cert,
chunksize=128))
chunksize=kw.get('chunksize', 128)))

@classmethod
def from_text(cls, rdclass, rdtype, tok, origin=None, relativize=True,
Expand Down

0 comments on commit a927fa3

Please sign in to comment.