aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2016-02-01 11:50:46 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2016-02-01 11:50:46 -0600
commit4a00dcd02b1d3c10f76273889e12b088662b218f (patch)
tree485ef437cc393e4c1e824844395a6938a9d19141 /src
parent874e865af094ad667cacb3df5e6d72f31e08c615 (diff)
parent0a0293e535c8bfd1cf329f77b51d31400aadd5d1 (diff)
downloadcryptography-4a00dcd02b1d3c10f76273889e12b088662b218f.tar.gz
cryptography-4a00dcd02b1d3c10f76273889e12b088662b218f.tar.bz2
cryptography-4a00dcd02b1d3c10f76273889e12b088662b218f.zip
Merge pull request #2705 from eeshangarg/inhibit-any-policy-hash
Refs #2578 -- implement __hash__ on InhibitAnyPolicy
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 fe9bcf9b..db55789e 100644
--- a/src/cryptography/x509/extensions.py
+++ b/src/cryptography/x509/extensions.py
@@ -693,6 +693,9 @@ class InhibitAnyPolicy(object):
def __ne__(self, other):
return not self == other
+ def __hash__(self):
+ return hash(self.skip_certs)
+
skip_certs = utils.read_only_property("_skip_certs")