aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-07-06 21:47:47 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2015-07-06 21:47:47 -0400
commit78a15f0621b7735e3033a5e1ceea6c6f9b3b9044 (patch)
tree1837793491d6fe32136da06f34265410aaba2ebf
parent935f6ca1a7d2cf31687c716c92e642372b9a7017 (diff)
downloadcryptography-78a15f0621b7735e3033a5e1ceea6c6f9b3b9044.tar.gz
cryptography-78a15f0621b7735e3033a5e1ceea6c6f9b3b9044.tar.bz2
cryptography-78a15f0621b7735e3033a5e1ceea6c6f9b3b9044.zip
added forgotten __ne__ method
-rw-r--r--src/cryptography/hazmat/backends/openssl/x509.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/x509.py b/src/cryptography/hazmat/backends/openssl/x509.py
index d49147ad..3b1ff790 100644
--- a/src/cryptography/hazmat/backends/openssl/x509.py
+++ b/src/cryptography/hazmat/backends/openssl/x509.py
@@ -709,6 +709,9 @@ class _CertificateSigningRequest(object):
other_bytes = other.public_bytes(serialization.Encoding.DER)
return self_bytes == other_bytes
+ def __ne__(self, other):
+ return not self == other
+
def public_key(self):
pkey = self._backend._lib.X509_REQ_get_pubkey(self._x509_req)
assert pkey != self._backend._ffi.NULL