aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-12-27 17:32:57 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-12-27 17:32:57 -0600
commite8db7bd4bdc0a61214c8b6fe502d5d0ba9393749 (patch)
tree2574ff08f622817c35680361dac4f7fb9fe4341f /src
parent58fb25797de0ec8866836f2a075063feeb689289 (diff)
downloadcryptography-e8db7bd4bdc0a61214c8b6fe502d5d0ba9393749.tar.gz
cryptography-e8db7bd4bdc0a61214c8b6fe502d5d0ba9393749.tar.bz2
cryptography-e8db7bd4bdc0a61214c8b6fe502d5d0ba9393749.zip
support indexing in CertificatePolicies
Diffstat (limited to 'src')
-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 7979ccb2..dd2b8e63 100644
--- a/src/cryptography/x509/extensions.py
+++ b/src/cryptography/x509/extensions.py
@@ -501,6 +501,9 @@ class CertificatePolicies(object):
def __ne__(self, other):
return not self == other
+ def __getitem__(self, idx):
+ return self._policies[idx]
+
class PolicyInformation(object):
def __init__(self, policy_identifier, policy_qualifiers):