diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/x509/extensions.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cryptography/x509/extensions.py b/src/cryptography/x509/extensions.py index dd2b8e63..4e7a53b6 100644 --- a/src/cryptography/x509/extensions.py +++ b/src/cryptography/x509/extensions.py @@ -270,6 +270,9 @@ class AuthorityInformationAccess(object): def __ne__(self, other): return not self == other + def __getitem__(self, idx): + return self._descriptions[idx] + class AccessDescription(object): def __init__(self, access_method, access_location): @@ -379,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): |