aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-12-26 15:01:25 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2015-12-26 15:01:25 -0500
commit410fe35dab3eb60fbcc5791e5ef24584ab45c324 (patch)
tree0eb7eaf9624e0832d1fc5ab77e25b541ca577e4f /src
parentf9a77b6886ac8942645a24b8cb65479fcfd23d09 (diff)
downloadcryptography-410fe35dab3eb60fbcc5791e5ef24584ab45c324.tar.gz
cryptography-410fe35dab3eb60fbcc5791e5ef24584ab45c324.tar.bz2
cryptography-410fe35dab3eb60fbcc5791e5ef24584ab45c324.zip
Refs #2578 -- implement __hash__ on SubjectKeyIdentifier
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 2363d2bf..5ef7a28b 100644
--- a/src/cryptography/x509/extensions.py
+++ b/src/cryptography/x509/extensions.py
@@ -234,6 +234,9 @@ class SubjectKeyIdentifier(object):
def __ne__(self, other):
return not self == other
+ def __hash__(self):
+ return hash(self.digest)
+
@utils.register_interface(ExtensionType)
class AuthorityInformationAccess(object):