aboutsummaryrefslogtreecommitdiffstats
path: root/src/cryptography/x509/extensions.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-12-27 19:18:39 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2015-12-27 19:18:39 -0500
commit8b69cb9ba7b345c615999de7df6ccd35dcece027 (patch)
treeebc8b816514127330ffd5bf0e3475f9458a5f673 /src/cryptography/x509/extensions.py
parent217fad8cb72b00b71d0f69287a1b76ddc8c42e92 (diff)
parentee2e92d32a984ffebe508108f1266315945b5cc5 (diff)
downloadcryptography-8b69cb9ba7b345c615999de7df6ccd35dcece027.tar.gz
cryptography-8b69cb9ba7b345c615999de7df6ccd35dcece027.tar.bz2
cryptography-8b69cb9ba7b345c615999de7df6ccd35dcece027.zip
Merge pull request #2597 from reaperhulk/index-cdp
support indexing in CDP
Diffstat (limited to 'src/cryptography/x509/extensions.py')
-rw-r--r--src/cryptography/x509/extensions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptography/x509/extensions.py b/src/cryptography/x509/extensions.py
index ac70cc18..1cd6a6d0 100644
--- a/src/cryptography/x509/extensions.py
+++ b/src/cryptography/x509/extensions.py
@@ -382,6 +382,9 @@ class CRLDistributionPoints(object):
def __ne__(self, other):
return not self == other
+ def __getitem__(self, idx):
+ return self._distribution_points[idx]
+
class DistributionPoint(object):
def __init__(self, full_name, relative_name, reasons, crl_issuer):