commit python-nbxmpp for openSUSE:Factory
Hello community, here is the log from the commit of package python-nbxmpp for openSUSE:Factory checked in at 2019-05-24 11:32:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-nbxmpp (Old) and /work/SRC/openSUSE:Factory/.python-nbxmpp.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-nbxmpp" Fri May 24 11:32:06 2019 rev:22 rq:704963 version:0.6.10 Changes: -------- --- /work/SRC/openSUSE:Factory/python-nbxmpp/python-nbxmpp.changes 2019-02-01 11:48:18.568376014 +0100 +++ /work/SRC/openSUSE:Factory/.python-nbxmpp.new.5148/python-nbxmpp.changes 2019-05-24 11:32:08.345394814 +0200 @@ -1,0 +2,8 @@ +Thu May 23 05:21:13 UTC 2019 - mvetter@suse.com + +- Update to 0.6.10: + * Add support for domain based name in features for GSSAPI + * Fix usage of BOSH + * Fix Jingle hash namespace + +------------------------------------------------------------------- Old: ---- nbxmpp-0.6.9.tar.gz New: ---- nbxmpp-0.6.10.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-nbxmpp.spec ++++++ --- /var/tmp/diff_new_pack.qYNRvX/_old 2019-05-24 11:32:08.941394660 +0200 +++ /var/tmp/diff_new_pack.qYNRvX/_new 2019-05-24 11:32:08.945394658 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define _name nbxmpp Name: python-nbxmpp -Version: 0.6.9 +Version: 0.6.10 Release: 0 Summary: XMPP library by Gajim team License: GPL-3.0-or-later ++++++ nbxmpp-0.6.9.tar.gz -> nbxmpp-0.6.10.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbxmpp-0.6.9/ChangeLog new/nbxmpp-0.6.10/ChangeLog --- old/nbxmpp-0.6.9/ChangeLog 2019-01-08 22:08:10.000000000 +0100 +++ new/nbxmpp-0.6.10/ChangeLog 2019-02-18 20:51:20.000000000 +0100 @@ -1,3 +1,9 @@ +python-nbxmpp 0.6.10 (19 February 2019) + + * Add support for domain based name in features for GSSAPI + * Fix usage of BOSH + * Fix Jingle hash namespace + python-nbxmpp 0.6.9 (10 January 2019) * Always bind after SM failed Fixes #64 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbxmpp-0.6.9/PKG-INFO new/nbxmpp-0.6.10/PKG-INFO --- old/nbxmpp-0.6.9/PKG-INFO 2019-01-08 22:09:00.000000000 +0100 +++ new/nbxmpp-0.6.10/PKG-INFO 2019-02-18 20:52:18.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: nbxmpp -Version: 0.6.9 +Version: 0.6.10 Summary: Non blocking Jabber/XMPP module Home-page: http://dev.gajim.org/gajim/python-nbxmpp Author: Yann Leboulanger diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbxmpp-0.6.9/nbxmpp/__init__.py new/nbxmpp-0.6.10/nbxmpp/__init__.py --- old/nbxmpp-0.6.9/nbxmpp/__init__.py 2019-01-08 22:08:10.000000000 +0100 +++ new/nbxmpp-0.6.10/nbxmpp/__init__.py 2019-02-18 20:51:20.000000000 +0100 @@ -17,4 +17,4 @@ from .plugin import PlugIn from .smacks import Smacks -__version__ = "0.6.9" +__version__ = "0.6.10" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbxmpp-0.6.9/nbxmpp/auth_nb.py new/nbxmpp-0.6.10/nbxmpp/auth_nb.py --- old/nbxmpp-0.6.9/nbxmpp/auth_nb.py 2019-01-08 22:08:10.000000000 +0100 +++ new/nbxmpp-0.6.10/nbxmpp/auth_nb.py 2019-02-18 20:51:20.000000000 +0100 @@ -24,7 +24,7 @@ from __future__ import unicode_literals from .protocol import NS_SASL, NS_SESSION, NS_STREAMS, NS_BIND, NS_AUTH -from .protocol import NS_STREAM_MGMT +from .protocol import NS_STREAM_MGMT, NS_DOMAIN_BASED_NAME from .protocol import Node, NodeProcessed, isResultNode, Iq, Protocol, JID from .plugin import PlugIn import sys @@ -124,6 +124,7 @@ self.channel_binding = channel_binding self.enabled_auth_mechs = auth_mechs self.realm = None + self._domain_based_name = None def plugin(self, owner): if 'version' not in self._owner.Dispatcher.Stream._document_attrs: @@ -189,6 +190,10 @@ in feats.getTag('mechanisms', namespace=NS_SASL).getTags('mechanism') ) & self.enabled_auth_mechs + hostname = feats.getTag('hostname', namespace=NS_DOMAIN_BASED_NAME) + if hostname is not None: + self._domain_based_name = hostname.getData() + # Password based authentication mechanism ordered by strength. # If the server supports a mechanism disable all weaker mechanisms. password_auth_mechs_strength = ['SCRAM-SHA-1-PLUS', 'SCRAM-SHA-1', @@ -229,9 +234,9 @@ raise NodeProcessed if 'GSSAPI' in self.mecs and have_kerberos: self.mecs.remove('GSSAPI') + hostname = self._domain_based_name or self._owner.xmpp_hostname try: - self.gss_vc = kerberos.authGSSClientInit('xmpp@' + \ - self._owner.xmpp_hostname)[1] + self.gss_vc = kerberos.authGSSClientInit('xmpp@%s' % hostname)[1] kerberos.authGSSClientStep(self.gss_vc, '') response = kerberos.authGSSClientResponse(self.gss_vc) node=Node('auth', attrs={'xmlns': NS_SASL, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbxmpp-0.6.9/nbxmpp/bosh.py new/nbxmpp-0.6.10/nbxmpp/bosh.py --- old/nbxmpp-0.6.9/nbxmpp/bosh.py 2019-01-08 22:08:10.000000000 +0100 +++ new/nbxmpp-0.6.10/nbxmpp/bosh.py 2019-02-18 20:51:20.000000000 +0100 @@ -44,7 +44,6 @@ idlequeue, estabilish_tls, certs, tls_version, cipher_list) self.bosh_sid = None - self.bosh_xml_lang = self._owner.lang self.http_version = 'HTTP/1.1' self.http_persistent = True @@ -413,7 +412,7 @@ t = BOSHBody( attrs={ 'to': self.bosh_to, 'sid': self.bosh_sid, - 'xml:lang': self.bosh_xml_lang, + 'xml:lang': self._owner.lang, 'xmpp:restart': 'true', 'secure': self.bosh_secure, 'xmlns:xmpp': 'urn:xmpp:xbosh'}) @@ -424,7 +423,7 @@ 'route': 'xmpp:%s:%s' % (self.route_host, self.route_port), 'to': self.bosh_to, 'wait': str(self.bosh_wait), - 'xml:lang': self.bosh_xml_lang, + 'xml:lang': self._owner.lang, 'xmpp:version': '1.0', 'ver': '1.6', 'xmlns:xmpp': 'urn:xmpp:xbosh'}) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbxmpp-0.6.9/nbxmpp/protocol.py new/nbxmpp-0.6.10/nbxmpp/protocol.py --- old/nbxmpp-0.6.9/nbxmpp/protocol.py 2019-01-08 22:08:10.000000000 +0100 +++ new/nbxmpp-0.6.10/nbxmpp/protocol.py 2019-02-18 20:51:20.000000000 +0100 @@ -190,6 +190,7 @@ NS_HASHES_BLAKE2B_256 = 'urn:xmpp:hash-function-text-names:id-blake2b256' NS_HASHES_BLAKE2B_512 = 'urn:xmpp:hash-function-text-names:id-blake2b512' NS_OPENPGP = 'urn:xmpp:openpgp:0' +NS_DOMAIN_BASED_NAME = 'urn:xmpp:domain-based-name:1' #xmpp_stream_error_conditions = ''' #bad-format -- -- -- The entity has sent XML that cannot be processed. @@ -1430,7 +1431,7 @@ supported = ('sha-256', 'sha-512', 'sha3-256', 'sha3-512', 'blake2b-256', 'blake2b-512') - def __init__(self, nsp=NS_HASHES): + def __init__(self, nsp=NS_HASHES_2): Node.__init__(self, None, {}, [], None, None, False, None) self.setNamespace(nsp) self.setName('hash') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbxmpp-0.6.9/setup.py new/nbxmpp-0.6.10/setup.py --- old/nbxmpp-0.6.9/setup.py 2019-01-08 22:08:10.000000000 +0100 +++ new/nbxmpp-0.6.10/setup.py 2019-02-18 20:51:20.000000000 +0100 @@ -3,7 +3,7 @@ from distutils.core import setup setup(name='nbxmpp', - version='0.6.9', + version='0.6.10', description='Non blocking Jabber/XMPP module', author='Yann Leboulanger', author_email='asterix@lagaule.org',
participants (1)
-
root