]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Remove checks already done by dns.dnssec.algorithm_from_text().
authorBob Halley <halley@dnspython.org>
Sat, 25 Jul 2020 19:46:35 +0000 (12:46 -0700)
committerBob Halley <halley@dnspython.org>
Sat, 25 Jul 2020 19:46:35 +0000 (12:46 -0700)
dns/rdtypes/ANY/CERT.py

index 62df241ced1ca21e472ebfcb5360d22e36e8d85c..3fce95b6e91874332915cded40811132e5bf2b24 100644 (file)
@@ -82,8 +82,6 @@ class CERT(dns.rdata.Rdata):
         certificate_type = _ctype_from_text(tok.get_string())
         key_tag = tok.get_uint16()
         algorithm = dns.dnssec.algorithm_from_text(tok.get_string())
-        if algorithm < 0 or algorithm > 255:
-            raise dns.exception.SyntaxError("bad algorithm type")
         b64 = tok.concatenate_remaining_identifiers().encode()
         certificate = base64.b64decode(b64)
         return cls(rdclass, rdtype, certificate_type, key_tag,