public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-python/python-nbxmpp/files: python-nbxmpp-0.4-store-certificate-backport.patch
@ 2014-04-24 14:18 Justin Lecher (jlec)
  0 siblings, 0 replies; 2+ messages in thread
From: Justin Lecher (jlec) @ 2014-04-24 14:18 UTC (permalink / raw
  To: gentoo-commits

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 <asterix@lagaule.org>
# 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)






^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in dev-python/python-nbxmpp/files: python-nbxmpp-0.4-store-certificate-backport.patch
@ 2015-03-02  6:58 Justin Lecher (jlec)
  0 siblings, 0 replies; 2+ messages in thread
From: Justin Lecher (jlec) @ 2015-03-02  6:58 UTC (permalink / raw
  To: gentoo-commits

jlec        15/03/02 06:58:06

  Removed:              python-nbxmpp-0.4-store-certificate-backport.patch
  Log:
  Version Bump
  
  (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-02  6:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-24 14:18 [gentoo-commits] gentoo-x86 commit in dev-python/python-nbxmpp/files: python-nbxmpp-0.4-store-certificate-backport.patch Justin Lecher (jlec)
  -- strict thread matches above, loose matches on Subject: below --
2015-03-02  6:58 Justin Lecher (jlec)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox