summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu-Ho Hsieh <yhhsieh@fb.com>2020-07-07 14:01:38 -0700
committerYu-Ho Hsieh <yhhsieh@fb.com>2020-07-07 14:05:34 -0700
commit1ae3b0f33060ed69ad2ade9228aa032630e1362f (patch)
treeeb591bc08ef22d086711d71ac8eccdabb27208d2
parent0a6b2c26056ce6f7962e52869b1809e2c29d7dbc (diff)
downloaddnspython-1ae3b0f33060ed69ad2ade9228aa032630e1362f.tar.gz
Support more DNS rcode
More DNS rcodes are assigned. Support rcode assigned before RFC7873 https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-6
-rw-r--r--dns/rcode.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/dns/rcode.py b/dns/rcode.py
index efefe73..d3cfdba 100644
--- a/dns/rcode.py
+++ b/dns/rcode.py
@@ -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):