jlec 14/04/24 14:18:08 Added: python-nbxmpp-0.4-store-certificate-backport.patch Log: dev-python/python-nbxmpp: Backport patch, #507334 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
Revision Changes Path 1.1 dev-python/python-nbxmpp/files/python-nbxmpp-0.4-store-certificate-backport.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-nbxmpp/files/python-nbxmpp-0.4-store-certificate-backport.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-nbxmpp/files/python-nbxmpp-0.4-store-certificate-backport.patch?rev=1.1&content-type=text/plain Index: python-nbxmpp-0.4-store-certificate-backport.patch =================================================================== # HG changeset patch # User Yann Leboulanger <[email protected]> # Date 1396114108 -3600 # Node ID cb67945d04385d86f0dff21e89c994b12cf07dc4 # Parent 46e9c8c80bacac8260245d5d9752ba0c5bddcf89 always store certificate of server, even if there is no error diff -r 46e9c8c80bac -r cb67945d0438 nbxmpp/tls_nb.py --- a/nbxmpp/tls_nb.py Sat Mar 15 20:39:59 2014 +0100 +++ b/nbxmpp/tls_nb.py Sat Mar 29 18:28:28 2014 +0100 @@ -476,9 +476,10 @@ def _ssl_verify_callback(self, sslconn, cert, errnum, depth, ok): # Exceptions can't propagate up through this callback, so print them here. try: - if not ok and depth == 0: + if depth == 0: self._owner.ssl_certificate = cert - self._owner.ssl_errnum = errnum + if not ok: + self._owner.ssl_errnum = errnum return True except: log.error("Exception caught in _ssl_info_callback:", exc_info=True)
