From 962c963f75327f43592d7be31b156837f1f9eff1 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Wed, 15 Aug 2018 18:52:16 -0400 Subject: Added missing methods from CRL Interface (#4400) --- src/cryptography/x509/base.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src') diff --git a/src/cryptography/x509/base.py b/src/cryptography/x509/base.py index b14499c9..0b353008 100644 --- a/src/cryptography/x509/base.py +++ b/src/cryptography/x509/base.py @@ -257,6 +257,24 @@ class CertificateRevocationList(object): Checks not equal. """ + @abc.abstractmethod + def __len__(self): + """ + Number of revoked certificates in the CRL. + """ + + @abc.abstractmethod + def __getitem__(self, idx): + """ + Returns a revoked certificate (or slice of revoked certificates). + """ + + @abc.abstractmethod + def __iter__(self): + """ + Iterator over the revoked certificates + """ + @abc.abstractmethod def is_signature_valid(self, public_key): """ -- cgit v1.2.3