]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Support more DNS rcode 532/head
authorYu-Ho Hsieh <yhhsieh@fb.com>
Tue, 7 Jul 2020 21:01:38 +0000 (14:01 -0700)
committerYu-Ho Hsieh <yhhsieh@fb.com>
Tue, 7 Jul 2020 21:05:34 +0000 (14:05 -0700)
More DNS rcodes are assigned. Support rcode assigned before RFC7873
https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-6

dns/rcode.py

index efefe737a9535de7df6111d3693c04271dfa8c1e..d3cfdbac36aa351a65fbbb7ef235617aeb5a4be4 100644 (file)
@@ -45,6 +45,22 @@ class Rcode(dns.enum.IntEnum):
     NOTZONE = 10
     #: Bad EDNS version.
     BADVERS = 16
+    #: TSIG Signature Failure
+    # BADSIG = 16
+    #: Key not recognized.
+    BADKEY     = 17
+    #: Signature out of time window.
+    BADTIME    = 18
+    #: Bad TKEY Mode.
+    BADMODE    = 19
+    #: Duplicate key name.
+    BADNAME = 20
+    #: Algorithm not supported.
+    BADALG = 21
+    #: Bad Truncation
+    BADTRUNC = 22
+    #: Bad/missing Server Cookie
+    BADCOOKIE = 23
 
     @classmethod
     def _maximum(cls):