From: Bob Halley Date: Thu, 18 Jun 2009 13:45:03 +0000 (+0100) Subject: Add DNSSEC constants X-Git-Tag: v1.7.0~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=077415cb7d1e508a764fe8287dea9eae55e0776e;p=thirdparty%2Fdnspython.git Add DNSSEC constants --- diff --git a/ChangeLog b/ChangeLog index d4eaffa2..7f359384 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-06-18 Bob Halley + + * Added various DNSSEC related constants (e.g. algorithm identifiers, + flag values). + 2009-06-18 Bob Halley * dns/tsig.py: Added support for BADTRUNC result code. diff --git a/dns/dnssec.py b/dns/dnssec.py index 90180aea..5da978a0 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 0b2e632f..86d3a179 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 1e0427b9..e568d7f7 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