From 14ec0db318d8f133ea5e095d11925d3292a80ad6b7c88a72aea3691beb17b4b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Mon, 2 Mar 2020 14:21:15 +0000 Subject: [PATCH] - update to 2.2.0 - add gss_test.patch to avoid segfault in kerberos * Added support for U2F/FIDO2 security keys * Added login timeout client option and limits on the length and number of banner lines AsyncSSH will accept prior to the SSH version header. * Improved load_keypairs() to read public key files, confirming that they are consistent with their associated private key when they are present. * Fixed issues in the SCP server related to handling filenames with spaces. * Fixed an issue with resuming reading after readuntil() returns an incomplete read. * Fixed a potential issue related to asyncio not reporting sockname/peername when a connection is closed immediately after it is opened. * Made SSHConnection a subclass of asyncio.Protocol to please type checkers. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-asyncssh?expand=0&rev=24 --- asyncssh-2.1.0.tar.gz | 3 --- asyncssh-2.2.0.tar.gz | 3 +++ gss_test.patch | 13 +++++++++++++ python-asyncssh.changes | 16 ++++++++++++++++ python-asyncssh.spec | 5 ++++- 5 files changed, 36 insertions(+), 4 deletions(-) delete mode 100644 asyncssh-2.1.0.tar.gz create mode 100644 asyncssh-2.2.0.tar.gz create mode 100644 gss_test.patch diff --git a/asyncssh-2.1.0.tar.gz b/asyncssh-2.1.0.tar.gz deleted file mode 100644 index 724a74c..0000000 --- a/asyncssh-2.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:19d0b4c65115d09b42ed21c748884157babfb3055a6e130ea349dfdcbcef3380 -size 325135 diff --git a/asyncssh-2.2.0.tar.gz b/asyncssh-2.2.0.tar.gz new file mode 100644 index 0000000..ef4567c --- /dev/null +++ b/asyncssh-2.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5a24d2b36b99d03380d237a6f1f4c5ac0999422027fe3c47084379f3671c18ee +size 336793 diff --git a/gss_test.patch b/gss_test.patch new file mode 100644 index 0000000..85a6d3c --- /dev/null +++ b/gss_test.patch @@ -0,0 +1,13 @@ +Index: asyncssh-2.2.0/tests/test_connection.py +=================================================================== +--- asyncssh-2.2.0.orig/tests/test_connection.py ++++ asyncssh-2.2.0/tests/test_connection.py +@@ -1173,7 +1173,7 @@ class _TestConnectionAsyncAcceptor(Serve + + conn.logger.info('Acceptor called') + +- return (await cls.create_server(_TunnelServer, gss_host=(), ++ return (await cls.create_server(_TunnelServer, gss_host=None, + acceptor=acceptor)) + + @asynctest diff --git a/python-asyncssh.changes b/python-asyncssh.changes index c67a0b9..4e733e8 100644 --- a/python-asyncssh.changes +++ b/python-asyncssh.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Mon Mar 2 14:19:17 UTC 2020 - Ondřej Súkup + +- update to 2.2.0 +- add gss_test.patch to avoid segfault in kerberos + * Added support for U2F/FIDO2 security keys + * Added login timeout client option and limits on the length and number + of banner lines AsyncSSH will accept prior to the SSH version header. + * Improved load_keypairs() to read public key files, confirming that they + are consistent with their associated private key when they are present. + * Fixed issues in the SCP server related to handling filenames with spaces. + * Fixed an issue with resuming reading after readuntil() returns an incomplete read. + * Fixed a potential issue related to asyncio not reporting sockname/peername + when a connection is closed immediately after it is opened. + * Made SSHConnection a subclass of asyncio.Protocol to please type checkers. + ------------------------------------------------------------------- Thu Jan 16 12:16:52 UTC 2020 - Ondřej Súkup diff --git a/python-asyncssh.spec b/python-asyncssh.spec index e4401ee..bf250de 100644 --- a/python-asyncssh.spec +++ b/python-asyncssh.spec @@ -19,13 +19,14 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-asyncssh -Version: 2.1.0 +Version: 2.2.0 Release: 0 Summary: Asynchronous SSHv2 client and server library License: EPL-2.0 OR GPL-2.0-or-later Group: Development/Languages/Python URL: http://asyncssh.timeheart.net Source: https://files.pythonhosted.org/packages/source/a/asyncssh/asyncssh-%{version}.tar.gz +Patch0: gss_test.patch BuildRequires: %{python_module bcrypt >= 3.1.3} BuildRequires: %{python_module cryptography >= 2.8} BuildRequires: %{python_module gssapi >= 1.2.0} @@ -41,6 +42,7 @@ Requires: python-cryptography >= 2.8 Requires: python-gssapi >= 1.2.0 Requires: python-libnacl >= 1.4.2 Requires: python-pyOpenSSL >= 17.0.0 +Recommends: python-fido2 >= 0.8.1 BuildArch: noarch %python_subpackages @@ -52,6 +54,7 @@ server implementation of the SSHv2 protocol on top of the Python asyncio framewo %prep %setup -q -n asyncssh-%{version} +%patch0 -p1 %build %python_build