diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2016-02-26 08:27:22 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2016-02-26 08:27:22 -0600 |
commit | 159b3b5ba975fcc2ebebfc707961070fc5fefacf (patch) | |
tree | 402a42755384902732e143dc578921717d04c36f /src | |
parent | 7e8fe9df4328f0d3134a502b5d3bc05435de7e6e (diff) | |
download | cryptography-159b3b5ba975fcc2ebebfc707961070fc5fefacf.tar.gz cryptography-159b3b5ba975fcc2ebebfc707961070fc5fefacf.tar.bz2 cryptography-159b3b5ba975fcc2ebebfc707961070fc5fefacf.zip |
add the oid required by the extensiontype interface
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/x509/extensions.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptography/x509/extensions.py b/src/cryptography/x509/extensions.py index ba9cb373..0aa67212 100644 --- a/src/cryptography/x509/extensions.py +++ b/src/cryptography/x509/extensions.py @@ -491,6 +491,8 @@ class ReasonFlags(Enum): @utils.register_interface(ExtensionType) class PolicyConstraints(object): + oid = ExtensionOID.POLICY_CONSTRAINTS + def __init__(self, require_explicit_policy, inhibit_policy_mapping): if require_explicit_policy is not None and not isinstance( require_explicit_policy, six.integer_types |