diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-09-04 21:21:03 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-09-04 21:21:03 +0200 |
commit | c2e74ef95c09216b0ee69987796e80ba01f75dab (patch) | |
tree | 0d3c0b2ccc88d420943a48e961c3f83e47e54ff5 /netlib/certutils.py | |
parent | 4bf7f3c0ff5158cd178756bc2a414f506fb34e05 (diff) | |
parent | d9a731b23a930474adc35d6b4ebee68cd05a0940 (diff) | |
download | mitmproxy-c2e74ef95c09216b0ee69987796e80ba01f75dab.tar.gz mitmproxy-c2e74ef95c09216b0ee69987796e80ba01f75dab.tar.bz2 mitmproxy-c2e74ef95c09216b0ee69987796e80ba01f75dab.zip |
Merge branch 'master' into mitmproxy_issue_341
Diffstat (limited to 'netlib/certutils.py')
-rw-r--r-- | netlib/certutils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/netlib/certutils.py b/netlib/certutils.py index 18179917..84316882 100644 --- a/netlib/certutils.py +++ b/netlib/certutils.py @@ -285,6 +285,9 @@ class SSLCert: def __eq__(self, other): return self.digest("sha1") == other.digest("sha1") + def __ne__(self, other): + return not self.__eq__(other) + @classmethod def from_pem(klass, txt): x509 = OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM, txt) |