From: Kiran Pawar Date: Tue, 21 Sep 2021 09:10:37 +0000 (+0200) Subject: Add new certificate types in CERT record X-Git-Tag: v2.2.0rc1~62^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F692%2Fhead;p=thirdparty%2Fdnspython.git Add new certificate types in CERT record Consider new certificate types as defined in https://datatracker.ietf.org/doc/html/rfc4398 --- diff --git a/dns/rdtypes/ANY/CERT.py b/dns/rdtypes/ANY/CERT.py index 5f26dde7..f2483c20 100644 --- a/dns/rdtypes/ANY/CERT.py +++ b/dns/rdtypes/ANY/CERT.py @@ -28,6 +28,11 @@ _ctype_by_value = { 1: 'PKIX', 2: 'SPKI', 3: 'PGP', + 4: 'IPKIX', + 5: 'ISPKI', + 6: 'IPGP', + 7: 'ACPKIX', + 8: 'IACPKIX', 253: 'URI', 254: 'OID', } @@ -36,6 +41,11 @@ _ctype_by_name = { 'PKIX': 1, 'SPKI': 2, 'PGP': 3, + 'IPKIX': 4, + 'ISPKI': 5, + 'IPGP': 6, + 'ACPKIX': 7, + 'IACPKIX': 8, 'URI': 253, 'OID': 254, }