diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/x509/extensions.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cryptography/x509/extensions.py b/src/cryptography/x509/extensions.py index f6957b9d..0bfe6f92 100644 --- a/src/cryptography/x509/extensions.py +++ b/src/cryptography/x509/extensions.py @@ -554,6 +554,11 @@ class PolicyConstraints(object): def __ne__(self, other): return not self == other + def __hash__(self): + return hash( + (self.require_explicit_policy, self.inhibit_policy_mapping) + ) + require_explicit_policy = utils.read_only_property( "_require_explicit_policy" ) @@ -1063,6 +1068,9 @@ class Extension(object): def __ne__(self, other): return not self == other + def __hash__(self): + return hash((self.oid, self.critical, self.value)) + class GeneralNames(object): def __init__(self, general_names): |