From dfdd4953776fc3b8594193bb7940fef24d3589fe Mon Sep 17 00:00:00 2001 From: Kiran Pawar Date: Tue, 21 Sep 2021 11:10:37 +0200 Subject: [PATCH] Add new certificate types in CERT record Consider new certificate types as defined in https://datatracker.ietf.org/doc/html/rfc4398 --- dns/rdtypes/ANY/CERT.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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, } -- 2.47.3