diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/x509/base.py | 18 |
1 files changed, 18 insertions, 0 deletions
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 @@ -258,6 +258,24 @@ class CertificateRevocationList(object): """ @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): """ Verifies signature of revocation list against given public key. |