]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Add DNSSEC constants
authorBob Halley <halley@nominum.com>
Thu, 18 Jun 2009 13:45:03 +0000 (14:45 +0100)
committerBob Halley <halley@nominum.com>
Thu, 18 Jun 2009 13:45:03 +0000 (14:45 +0100)
ChangeLog
dns/dnssec.py
dns/rdtypes/ANY/DNSKEY.py
dns/rdtypes/ANY/NSEC3.py

index d4eaffa2d3bc7fa597d03c59275f7f21bf21b3aa..7f35938432600b35624306ac5590209182113531 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
index 90180aeaef717e450e54f6166a6f0c3cc8e2b207..5da978a00ddc0af7210c663a8a938cfae75a3386 100644 (file)
@@ -19,6 +19,9 @@ RSAMD5 = 1
 DH = 2
 DSA = 3
 ECC = 4
+RSASHA1 = 5
+DSANSEC3SHA1 = 6
+RSASHA1NSEC3SHA1 = 7
 INDIRECT = 252
 PRIVATEDNS = 253
 PRIVATEOID = 254
index 0b2e632f5dee20ab4368a3c19d31a1e72a78a559..86d3a179031646358bdfa4f13b16f560a442d2a6 100644 (file)
 
 import dns.rdtypes.keybase
 
+# flag constants
+SEP = 0x0001
+REVOKE = 0x0080
+ZONE = 0x0100
+
 class DNSKEY(dns.rdtypes.keybase.KEYBase):
     """DNSKEY record"""
     pass
index 1e0427b9312657e54c7d8ef555b504aea5e17877..e568d7f7af35256fae9204cf8d4a36efb88ed910 100644 (file)
@@ -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