diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-12-27 17:29:37 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-12-27 17:29:37 -0600 |
commit | ee2e92d32a984ffebe508108f1266315945b5cc5 (patch) | |
tree | 193e23eb1f151ad209a25f54663c84ae8cf95c77 /src/cryptography/x509/extensions.py | |
parent | 58fb25797de0ec8866836f2a075063feeb689289 (diff) | |
download | cryptography-ee2e92d32a984ffebe508108f1266315945b5cc5.tar.gz cryptography-ee2e92d32a984ffebe508108f1266315945b5cc5.tar.bz2 cryptography-ee2e92d32a984ffebe508108f1266315945b5cc5.zip |
support indexing in CDP
Diffstat (limited to 'src/cryptography/x509/extensions.py')
-rw-r--r-- | src/cryptography/x509/extensions.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptography/x509/extensions.py b/src/cryptography/x509/extensions.py index 7979ccb2..97a60a41 100644 --- a/src/cryptography/x509/extensions.py +++ b/src/cryptography/x509/extensions.py @@ -379,6 +379,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): |