Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
abfe8658 by Philipp Hörist at 2017-12-27T19:57:28+01:00
Fix SSL verify
Fixes #37
This commit was lost while migrating from mercurial to Git
- - - - -
1 changed file:
- nbxmpp/tls_nb.py
Changes:
=====================================
nbxmpp/tls_nb.py
=====================================
--- a/nbxmpp/tls_nb.py
+++ b/nbxmpp/tls_nb.py
@@ -494,13 +494,13 @@ class NonBlockingTLS(PlugIn):
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 self._owner.ssl_errnum:
+ self._owner.ssl_errnum = errnum
if depth == 0:
self._owner.ssl_certificate = cert
- if not ok:
- self._owner.ssl_errnum = errnum
return True
- except:
- log.error("Exception caught in _ssl_info_callback:", exc_info=True)
+ except Exception:
+ log.exception("Exception caught in _ssl_info_callback:")
# Make sure something is printed, even if log is disabled.
traceback.print_exc()
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/commit/abfe8658091b987f76732c74f756d8c0342dc858
---
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/commit/abfe8658091b987f76732c74f756d8c0342dc858
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits