aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2016-01-03 15:12:23 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2016-01-03 15:12:23 -0500
commitb642deed88a8696e5f01ce6855ccf89985fc35d0 (patch)
tree2fab837d66c674ae9d23a372e1b5f8a55437e26d /src
parenta39a23c6c18aaa01165c6c67b9c715405b259a54 (diff)
downloadcryptography-b642deed88a8696e5f01ce6855ccf89985fc35d0.tar.gz
cryptography-b642deed88a8696e5f01ce6855ccf89985fc35d0.tar.bz2
cryptography-b642deed88a8696e5f01ce6855ccf89985fc35d0.zip
Implement __hash__ on RFC822Name
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/x509/general_name.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptography/x509/general_name.py b/src/cryptography/x509/general_name.py
index f5bd30fb..3e0562af 100644
--- a/src/cryptography/x509/general_name.py
+++ b/src/cryptography/x509/general_name.py
@@ -85,6 +85,9 @@ class RFC822Name(object):
def __ne__(self, other):
return not self == other
+ def __hash__(self):
+ return hash(self.value)
+
@utils.register_interface(GeneralName)
class DNSName(object):