aboutsummaryrefslogtreecommitdiffstats
path: root/src/cryptography/x509
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2018-08-15 18:52:16 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2018-08-15 17:52:16 -0500
commit962c963f75327f43592d7be31b156837f1f9eff1 (patch)
treedc42bfea91657809e01e27378e42fd6cd25ea397 /src/cryptography/x509
parentb3f4df1947575813c89b38a3778d826152d7766a (diff)
downloadcryptography-962c963f75327f43592d7be31b156837f1f9eff1.tar.gz
cryptography-962c963f75327f43592d7be31b156837f1f9eff1.tar.bz2
cryptography-962c963f75327f43592d7be31b156837f1f9eff1.zip
Added missing methods from CRL Interface (#4400)
Diffstat (limited to 'src/cryptography/x509')
-rw-r--r--src/cryptography/x509/base.py18
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.