Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
e471a74e by Philipp Hörist at 2018-05-01T12:14:23+02:00
Record all ssl errors that are encountered
- - - - -
3 changed files:
- nbxmpp/bosh.py
- nbxmpp/tls_nb.py
- nbxmpp/transports_nb.py
Changes:
=====================================
nbxmpp/bosh.py
=====================================
--- a/nbxmpp/bosh.py
+++ b/nbxmpp/bosh.py
@@ -93,8 +93,10 @@ class NonBlockingBOSH(NonBlockingTransport):
# ssl variables
self.ssl_certificate = None
+ # first ssl error
self.ssl_errnum = 0
-
+ # all ssl errors
+ self.ssl_errors = []
def connect(self, conn_5tuple, on_connect, on_connect_failure):
NonBlockingTransport.connect(self, conn_5tuple, on_connect, on_connect_failure)
=====================================
nbxmpp/tls_nb.py
=====================================
--- a/nbxmpp/tls_nb.py
+++ b/nbxmpp/tls_nb.py
@@ -508,7 +508,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 errnum:
+ self._owner.ssl_errors.append(errnum)
+ # This stores all ssl errors that are encountered while
+ # the chain is verifyed
if not self._owner.ssl_errnum:
+ # This records the first ssl error that is encountered
+ # we keep this because of backwards compatibility
self._owner.ssl_errnum = errnum
if depth == 0:
self._owner.ssl_certificate = cert
=====================================
nbxmpp/transports_nb.py
=====================================
--- a/nbxmpp/transports_nb.py
+++ b/nbxmpp/transports_nb.py
@@ -339,7 +339,10 @@ class NonBlockingTCP(NonBlockingTransport, IdleObject):
# ssl variables
self.ssl_certificate = None
+ # first ssl error
self.ssl_errnum = 0
+ # all ssl errors
+ self.ssl_errors = []
self.alpn = alpn
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/e471a74e40d378d2c27e1a045b…
---
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/e471a74e40d378d2c27e1a045b…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
779a4d4c by Philipp Hörist at 2018-05-01T00:37:13+02:00
Get version from package instead of config
- - - - -
1 changed file:
- gajim/plugins/pluginmanager.py
Changes:
=====================================
gajim/plugins/pluginmanager.py
=====================================
--- a/gajim/plugins/pluginmanager.py
+++ b/gajim/plugins/pluginmanager.py
@@ -34,6 +34,7 @@ from shutil import rmtree
import configparser
from pkg_resources import parse_version
+import gajim
from gajim.common import app
from gajim.common import nec
from gajim.common import configpaths
@@ -536,7 +537,7 @@ class PluginManager(metaclass=Singleton):
min_v = conf.get('info', 'min_gajim_version', fallback=None)
max_v = conf.get('info', 'max_gajim_version', fallback=None)
- gajim_v = app.config.get('version').split('+', 1)[0]
+ gajim_v = gajim.__version__.split('+', 1)[0]
gajim_v_cmp = parse_version(gajim_v)
if min_v and gajim_v_cmp < parse_version(min_v):
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/779a4d4ce3bf7bb4af5badf02589a13dbe…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/779a4d4ce3bf7bb4af5badf02589a13dbe…
You're receiving this email because of your account on dev.gajim.org.
Yann Leboulanger pushed to branch master at gajim / gajim
Commits:
b5c51932 by Yann Leboulanger at 2018-04-30T17:04:58+02:00
update version to 1.0.2
- - - - -
1 changed file:
- gajim/__init__.py
Changes:
=====================================
gajim/__init__.py
=====================================
--- a/gajim/__init__.py
+++ b/gajim/__init__.py
@@ -1,6 +1,6 @@
import subprocess
-__version__ = "1.0.1"
+__version__ = "1.0.2"
try:
p = subprocess.Popen('git rev-parse --short=12 HEAD', shell=True,
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/b5c51932f49110a96e9244a65d8d8b37d8…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/b5c51932f49110a96e9244a65d8d8b37d8…
You're receiving this email because of your account on dev.gajim.org.