From: Bob Halley Date: Fri, 2 Sep 2005 05:22:35 +0000 (+0000) Subject: add SSHFP RR X-Git-Tag: v1.3.4~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de97096707a2b0fe4ec55c438f592276ad11b6dd;p=thirdparty%2Fdnspython.git add SSHFP RR Original author: Bob Halley Date: 2004-05-22 10:00:36 --- diff --git a/ChangeLog b/ChangeLog index 1cbfbeb6..d59bf552 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-05-22 Bob Halley + + * dns/rdtypes/ANY/SSHFP.py: Added support for the proposed SSHFP + RR type. + 2004-05-14 Bob Halley * dns/rdata.py (from_text): The masterfile reader did not diff --git a/dns/rdatatype.py b/dns/rdatatype.py index 20f03034..329c4986 100644 --- a/dns/rdatatype.py +++ b/dns/rdatatype.py @@ -72,6 +72,7 @@ DNAME = 39 OPT = 41 APL = 42 DS = 43 +SSHFP = 44 RRSIG = 46 NSEC = 47 DNSKEY = 48 @@ -125,6 +126,7 @@ _by_text = { 'OPT' : OPT, 'APL' : APL, 'DS' : DS, + 'SSHFP' : SSHFP, 'RRSIG' : RRSIG, 'NSEC' : NSEC, 'DNSKEY' : DNSKEY, diff --git a/tests/example b/tests/example index c34b5a64..4dcb0f1e 100644 --- a/tests/example +++ b/tests/example @@ -201,3 +201,4 @@ dnskey02 DNSKEY HOST|FLAG4 DNSSEC RSAMD5 ( ; test known type using unknown RR syntax ; unknown3 A \# 4 7f000002 +sshfp1 SSHFP 1 1 aa549bfe898489c02d1715d97d79c57ba2fa76ab diff --git a/tests/example1.good b/tests/example1.good index c57bb65d..4cd2d649 100644 --- a/tests/example1.good +++ b/tests/example1.good @@ -78,6 +78,7 @@ ns.s 300 IN A 73.80.65.49 sig01 3600 IN SIG NXT 1 3 3600 20200101000000 20030101000000 2143 foo MxFcby9k/yvedMfQgKzhH5er0Mu/vILz 45IkskceFGgiWCn/GxHhai6VAuHAoNUz 4YoU1tVfSCSqQYn6//11U6Nld80jEeC8 aTrO+KKmCaY= srv01 3600 IN SRV 0 0 0 . srv02 3600 IN SRV 65535 65535 65535 old-slow-box.example.com. +sshfp1 3600 IN SSHFP 1 1 aa549bfe898489c02d1715d97d79c57ba2fa76ab t 301 IN A 73.80.65.49 txt01 3600 IN TXT "foo" txt02 3600 IN TXT "foo" "bar" diff --git a/tests/example2.good b/tests/example2.good index 88549a3c..5cf5a4c0 100644 --- a/tests/example2.good +++ b/tests/example2.good @@ -78,6 +78,7 @@ ns.s.example. 300 IN A 73.80.65.49 sig01.example. 3600 IN SIG NXT 1 3 3600 20200101000000 20030101000000 2143 foo.example. MxFcby9k/yvedMfQgKzhH5er0Mu/vILz 45IkskceFGgiWCn/GxHhai6VAuHAoNUz 4YoU1tVfSCSqQYn6//11U6Nld80jEeC8 aTrO+KKmCaY= srv01.example. 3600 IN SRV 0 0 0 . srv02.example. 3600 IN SRV 65535 65535 65535 old-slow-box.example.com. +sshfp1.example. 3600 IN SSHFP 1 1 aa549bfe898489c02d1715d97d79c57ba2fa76ab t.example. 301 IN A 73.80.65.49 txt01.example. 3600 IN TXT "foo" txt02.example. 3600 IN TXT "foo" "bar"