summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Halley <halley@nominum.com>2009-06-18 14:45:03 +0100
committerBob Halley <halley@nominum.com>2009-06-18 14:45:03 +0100
commit077415cb7d1e508a764fe8287dea9eae55e0776e (patch)
tree8ab8d9291af4fedb79696004e8ef9bfd654e9f9e
parente76a057221024b9d0b27524e4d82900409ff9445 (diff)
downloaddnspython-077415cb7d1e508a764fe8287dea9eae55e0776e.tar.gz
Add DNSSEC constants
-rw-r--r--ChangeLog5
-rw-r--r--dns/dnssec.py3
-rw-r--r--dns/rdtypes/ANY/DNSKEY.py5
-rw-r--r--dns/rdtypes/ANY/NSEC3.py6
4 files changed, 19 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d4eaffa..7f35938 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2009-06-18 Bob Halley <halley@dnspython.org>
+ * Added various DNSSEC related constants (e.g. algorithm identifiers,
+ flag values).
+
+2009-06-18 Bob Halley <halley@dnspython.org>
+
* dns/tsig.py: Added support for BADTRUNC result code.
2009-06-18 Bob Halley <halley@dnspython.org>
diff --git a/dns/dnssec.py b/dns/dnssec.py
index 90180ae..5da978a 100644
--- a/dns/dnssec.py
+++ b/dns/dnssec.py
@@ -19,6 +19,9 @@ RSAMD5 = 1
DH = 2
DSA = 3
ECC = 4
+RSASHA1 = 5
+DSANSEC3SHA1 = 6
+RSASHA1NSEC3SHA1 = 7
INDIRECT = 252
PRIVATEDNS = 253
PRIVATEOID = 254
diff --git a/dns/rdtypes/ANY/DNSKEY.py b/dns/rdtypes/ANY/DNSKEY.py
index 0b2e632..86d3a17 100644
--- a/dns/rdtypes/ANY/DNSKEY.py
+++ b/dns/rdtypes/ANY/DNSKEY.py
@@ -15,6 +15,11 @@
import dns.rdtypes.keybase
+# flag constants
+SEP = 0x0001
+REVOKE = 0x0080
+ZONE = 0x0100
+
class DNSKEY(dns.rdtypes.keybase.KEYBase):
"""DNSKEY record"""
pass
diff --git a/dns/rdtypes/ANY/NSEC3.py b/dns/rdtypes/ANY/NSEC3.py
index 1e0427b..e568d7f 100644
--- a/dns/rdtypes/ANY/NSEC3.py
+++ b/dns/rdtypes/ANY/NSEC3.py
@@ -27,6 +27,12 @@ b32_hex_to_normal = string.maketrans('0123456789ABCDEFGHIJKLMNOPQRSTUV',
b32_normal_to_hex = string.maketrans('ABCDEFGHIJKLMNOPQRSTUVWXYZ234567',
'0123456789ABCDEFGHIJKLMNOPQRSTUV')
+# hash algorithm constants
+SHA1 = 1
+
+# flag constants
+OPTOUT = 1
+
class NSEC3(dns.rdata.Rdata):
"""NSEC3 record