From 78a15f0621b7735e3033a5e1ceea6c6f9b3b9044 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Mon, 6 Jul 2015 21:47:47 -0400 Subject: added forgotten __ne__ method --- src/cryptography/hazmat/backends/openssl/x509.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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 -- cgit v1.2.3