aboutsummaryrefslogtreecommitdiffstats
path: root/src/cryptography/x509
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2017-09-13 08:29:19 +0800
committerAlex Gaynor <alex.gaynor@gmail.com>2017-09-12 20:29:19 -0400
commite00bad5332f3ba851823270bee8e191ac0fc4ec2 (patch)
tree6a9d6a1b1473d89f048bb91ac4e0baf1e272965e /src/cryptography/x509
parentc7ecb4568444bec5a1db02e9db1ad386a7afc88d (diff)
downloadcryptography-e00bad5332f3ba851823270bee8e191ac0fc4ec2.tar.gz
cryptography-e00bad5332f3ba851823270bee8e191ac0fc4ec2.tar.bz2
cryptography-e00bad5332f3ba851823270bee8e191ac0fc4ec2.zip
compare against bytes values, not the U-label decoded ones (#3906)
We need to add one small test to cover a case that is no longer covered with this switch.
Diffstat (limited to 'src/cryptography/x509')
-rw-r--r--src/cryptography/x509/general_name.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptography/x509/general_name.py b/src/cryptography/x509/general_name.py
index 114b43ae..abf3a48a 100644
--- a/src/cryptography/x509/general_name.py
+++ b/src/cryptography/x509/general_name.py
@@ -117,7 +117,7 @@ class RFC822Name(object):
if not isinstance(other, RFC822Name):
return NotImplemented
- return self.value == other.value
+ return self.bytes_value == other.bytes_value
def __ne__(self, other):
return not self == other
@@ -300,7 +300,7 @@ class UniformResourceIdentifier(object):
if not isinstance(other, UniformResourceIdentifier):
return NotImplemented
- return self.value == other.value
+ return self.bytes_value == other.bytes_value
def __ne__(self, other):
return not self == other