diff --git a/ci/appveyor/build_krb.bat b/ci/appveyor/build_krb.bat index 4904d300..452437d6 100755 --- a/ci/appveyor/build_krb.bat +++ b/ci/appveyor/build_krb.bat @@ -1,3 +1,20 @@ +@REM This file is part of ssh-python. +@REM Copyright (C) 2018-2025 Panos Kittenis. +@REM Copyright (C) 2018-2025 ssh-python Contributors. +@REM +@REM This library is free software; you can redistribute it and/or +@REM modify it under the terms of the GNU Lesser General Public +@REM License as published by the Free Software Foundation, version 2.1. +@REM +@REM This library is distributed in the hope that it will be useful, +@REM but WITHOUT ANY WARRANTY; without even the implied warranty of +@REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +@REM Lesser General Public License for more details. +@REM +@REM You should have received a copy of the GNU Lesser General Public +@REM License along with this library; if not, write to the Free Software +@REM Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 + refreshenv set KRB_INSTALL_DIR=%APPVEYOR_HOME_DIR%/src/lib set CPU=AMD64 diff --git a/ci/appveyor/build_ssh.bat b/ci/appveyor/build_ssh.bat index aab30d10..ee15f288 100755 --- a/ci/appveyor/build_ssh.bat +++ b/ci/appveyor/build_ssh.bat @@ -1,3 +1,20 @@ +@REM This file is part of ssh-python. +@REM Copyright (C) 2018-2025 Panos Kittenis. +@REM Copyright (C) 2018-2025 ssh-python Contributors. +@REM +@REM This library is free software; you can redistribute it and/or +@REM modify it under the terms of the GNU Lesser General Public +@REM License as published by the Free Software Foundation, version 2.1. +@REM +@REM This library is distributed in the hope that it will be useful, +@REM but WITHOUT ANY WARRANTY; without even the implied warranty of +@REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +@REM Lesser General Public License for more details. +@REM +@REM You should have received a copy of the GNU Lesser General Public +@REM License along with this library; if not, write to the Free Software +@REM Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 + IF "%PYTHON_VERSION%" == "2.7" (exit 0) mkdir src diff --git a/ci/appveyor/build_zlib.bat b/ci/appveyor/build_zlib.bat index be044e7c..1b6567c1 100755 --- a/ci/appveyor/build_zlib.bat +++ b/ci/appveyor/build_zlib.bat @@ -1,3 +1,20 @@ +@REM This file is part of ssh-python. +@REM Copyright (C) 2018-2025 Panos Kittenis. +@REM Copyright (C) 2018-2025 ssh-python Contributors. +@REM +@REM This library is free software; you can redistribute it and/or +@REM modify it under the terms of the GNU Lesser General Public +@REM License as published by the Free Software Foundation, version 2.1. +@REM +@REM This library is distributed in the hope that it will be useful, +@REM but WITHOUT ANY WARRANTY; without even the implied warranty of +@REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +@REM Lesser General Public License for more details. +@REM +@REM You should have received a copy of the GNU Lesser General Public +@REM License along with this library; if not, write to the Free Software +@REM Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 + IF "%PYTHON_VERSION%" == "2.7" (exit 0) mkdir zlib_build && cd zlib_build diff --git a/ci/appveyor/fix_version.py b/ci/appveyor/fix_version.py index d8575bd3..fb317cd9 100644 --- a/ci/appveyor/fix_version.py +++ b/ci/appveyor/fix_version.py @@ -1,3 +1,20 @@ +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 + import os from datetime import datetime import subprocess diff --git a/ci/appveyor/import_test.py b/ci/appveyor/import_test.py index 70fc9266..5e473312 100644 --- a/ci/appveyor/import_test.py +++ b/ci/appveyor/import_test.py @@ -1,3 +1,20 @@ +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 + from __future__ import print_function import sys diff --git a/ci/appveyor/pypi_upload.py b/ci/appveyor/pypi_upload.py index 1537b3c4..c6771623 100644 --- a/ci/appveyor/pypi_upload.py +++ b/ci/appveyor/pypi_upload.py @@ -1,3 +1,20 @@ +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 + import sys import subprocess import os diff --git a/ci/build-manylinux.sh b/ci/build-manylinux.sh index 12c010ea..02586194 100755 --- a/ci/build-manylinux.sh +++ b/ci/build-manylinux.sh @@ -1,19 +1,20 @@ #!/bin/bash -xe -# This file is part of ssh-python. -# Copyright (C) 2017-2022 Panos Kittenis and contributors. +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 tar -czf ci/docker/manylinux/libssh-${LIBSSH}.tar.gz libssh tar -czf ci/docker/manylinux/krb5-${KRB}.tar.gz krb5-${KRB} diff --git a/ci/build-wheels.sh b/ci/build-wheels.sh index f789bb0a..548c03ee 100755 --- a/ci/build-wheels.sh +++ b/ci/build-wheels.sh @@ -1,19 +1,20 @@ #!/bin/bash -xe -# This file is part of ssh-python. -# Copyright (C) 2017-2022 Panos Kittenis and contributors. +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 # Compile wheels rm -rf /io/build diff --git a/ci/docker/manylinux/Dockerfile.2014_x86_64 b/ci/docker/manylinux/Dockerfile.2014_x86_64 index 3e280b65..690828b0 100644 --- a/ci/docker/manylinux/Dockerfile.2014_x86_64 +++ b/ci/docker/manylinux/Dockerfile.2014_x86_64 @@ -1,3 +1,20 @@ +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 + FROM quay.io/pypa/manylinux2014_x86_64 ENV OPENSSL=openssl-3.4.0 diff --git a/ci/docker/manylinux/Dockerfile.aarch64 b/ci/docker/manylinux/Dockerfile.aarch64 index af5b3c69..8cc26ce8 100644 --- a/ci/docker/manylinux/Dockerfile.aarch64 +++ b/ci/docker/manylinux/Dockerfile.aarch64 @@ -1,3 +1,20 @@ +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 + FROM quay.io/pypa/manylinux2014_aarch64 ENV OPENSSL=openssl-3.4.0 diff --git a/ci/docker/manylinux/Dockerfile.aarch64_2_24 b/ci/docker/manylinux/Dockerfile.aarch64_2_24 index 1a2c0c5d..bc246e34 100644 --- a/ci/docker/manylinux/Dockerfile.aarch64_2_24 +++ b/ci/docker/manylinux/Dockerfile.aarch64_2_24 @@ -1,3 +1,20 @@ +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 + FROM quay.io/pypa/manylinux_2_24_aarch64 ENV OPENSSL=openssl-3.4.0 diff --git a/ci/docker/manylinux/Dockerfile.aarch64_2_28 b/ci/docker/manylinux/Dockerfile.aarch64_2_28 index c2a6cdd3..5e479637 100644 --- a/ci/docker/manylinux/Dockerfile.aarch64_2_28 +++ b/ci/docker/manylinux/Dockerfile.aarch64_2_28 @@ -1,3 +1,20 @@ +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 + FROM quay.io/pypa/manylinux_2_28_aarch64 ENV OPENSSL=openssl-3.4.0 diff --git a/ci/docker/manylinux/Dockerfile.manylinux_2_24_x86_64 b/ci/docker/manylinux/Dockerfile.manylinux_2_24_x86_64 index 3286cec3..3bdf4692 100644 --- a/ci/docker/manylinux/Dockerfile.manylinux_2_24_x86_64 +++ b/ci/docker/manylinux/Dockerfile.manylinux_2_24_x86_64 @@ -1,3 +1,20 @@ +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 + FROM quay.io/pypa/manylinux_2_24_x86_64 ENV OPENSSL=openssl-3.4.0 diff --git a/ci/docker/manylinux/Dockerfile.manylinux_2_28_x86_64 b/ci/docker/manylinux/Dockerfile.manylinux_2_28_x86_64 index 77c2ddcf..5afb2866 100644 --- a/ci/docker/manylinux/Dockerfile.manylinux_2_28_x86_64 +++ b/ci/docker/manylinux/Dockerfile.manylinux_2_28_x86_64 @@ -1,3 +1,20 @@ +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 + FROM quay.io/pypa/manylinux_2_28_x86_64 ENV OPENSSL=openssl-3.4.0 diff --git a/ci/integration_tests/__init__.py b/ci/integration_tests/__init__.py index e69de29b..c1b9dac2 100644 --- a/ci/integration_tests/__init__.py +++ b/ci/integration_tests/__init__.py @@ -0,0 +1,16 @@ +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 diff --git a/ci/integration_tests/base_case.py b/ci/integration_tests/base_case.py index de48fc4e..2901a9aa 100644 --- a/ci/integration_tests/base_case.py +++ b/ci/integration_tests/base_case.py @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018-2020 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 import os import socket diff --git a/ci/integration_tests/test_channel.py b/ci/integration_tests/test_channel.py index 40535867..e4e8fe7a 100644 --- a/ci/integration_tests/test_channel.py +++ b/ci/integration_tests/test_channel.py @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 import unittest from pytest import mark diff --git a/ci/integration_tests/test_session.py b/ci/integration_tests/test_session.py index 85d18bbd..a4b49d47 100644 --- a/ci/integration_tests/test_session.py +++ b/ci/integration_tests/test_session.py @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 import unittest import socket diff --git a/ci/integration_tests/test_sftp.py b/ci/integration_tests/test_sftp.py index af9ecafc..ae24308e 100644 --- a/ci/integration_tests/test_sftp.py +++ b/ci/integration_tests/test_sftp.py @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 import unittest import os diff --git a/ci/osx-wheel.sh b/ci/osx-wheel.sh index 9899ed48..e047141c 100755 --- a/ci/osx-wheel.sh +++ b/ci/osx-wheel.sh @@ -1,19 +1,21 @@ #!/bin/bash -xe -# This file is part of ssh-python. -# Copyright (C) 2017-2022 Panos Kittenis and contributors. +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 + SYSTEM_LIBSSH_DIR="/opt/homebrew/opt/libssh/lib" MY_LIBSSH_DIR="local/lib" LIBSSH_INCLUDE_DIR="/opt/homebrew/opt/libssh/include" diff --git a/setup.py b/setup.py index d1b2e853..1f993d7a 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,20 @@ +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 + import os import platform import sys @@ -108,7 +125,7 @@ url='https://github.com/ParallelSSH/ssh-python', license='LGPL-2.1-only', author='Panos Kittenis', - author_email='22e889d8@opayq.com', + author_email='danst@tutanota.com', description="libssh C library bindings for Python.", long_description=open('README.rst').read(), packages=find_packages( diff --git a/ssh/__init__.pxd b/ssh/__init__.pxd index e69de29b..c1b9dac2 100644 --- a/ssh/__init__.pxd +++ b/ssh/__init__.pxd @@ -0,0 +1,16 @@ +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 diff --git a/ssh/__init__.py b/ssh/__init__.py index 251da663..091ec25e 100644 --- a/ssh/__init__.py +++ b/ssh/__init__.py @@ -1,2 +1,19 @@ +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 + from . import _version __version__ = _version.get_versions()['version'] diff --git a/ssh/c_callbacks.pxd b/ssh/c_callbacks.pxd index 1544c91f..0c02aa0d 100644 --- a/ssh/c_callbacks.pxd +++ b/ssh/c_callbacks.pxd @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from .c_ssh cimport ssh_session, ssh_channel, ssh_buffer, ssh_string, \ uint32_t, uint8_t, ssh_key_struct, ssh_auth_callback, ssh_message diff --git a/ssh/c_legacy.pxd b/ssh/c_legacy.pxd index 3e935c64..669ad3cb 100644 --- a/ssh/c_legacy.pxd +++ b/ssh/c_legacy.pxd @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from .c_ssh cimport ssh_session, ssh_string, ssh_message, uint32_t, \ ssh_keytypes_e diff --git a/ssh/c_sftp.pxd b/ssh/c_sftp.pxd index ad3f500e..417a2a6a 100644 --- a/ssh/c_sftp.pxd +++ b/ssh/c_sftp.pxd @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from .c_ssh cimport uint64_t, uint32_t, uint8_t, ssh_string, ssh_buffer, \ ssh_channel, ssh_session, timeval diff --git a/ssh/c_ssh.pxd b/ssh/c_ssh.pxd index 6bc15b79..69fa6d7d 100644 --- a/ssh/c_ssh.pxd +++ b/ssh/c_ssh.pxd @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from libc.time cimport time_t from posix.types cimport mode_t, suseconds_t diff --git a/ssh/c_ssh2.pxd b/ssh/c_ssh2.pxd index 853f5aab..ba2aa234 100644 --- a/ssh/c_ssh2.pxd +++ b/ssh/c_ssh2.pxd @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 cdef extern from "libssh/ssh2.h" nogil: enum: diff --git a/ssh/callbacks.pxd b/ssh/callbacks.pxd index 50dd14b7..8761f35a 100644 --- a/ssh/callbacks.pxd +++ b/ssh/callbacks.pxd @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from . cimport c_callbacks diff --git a/ssh/callbacks.pyx b/ssh/callbacks.pyx index 33fb4bc8..123598d5 100644 --- a/ssh/callbacks.pyx +++ b/ssh/callbacks.pyx @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from libc.stdlib cimport malloc, free from libc.string cimport memset diff --git a/ssh/channel.pxd b/ssh/channel.pxd index b934ee0e..c79f8dc1 100644 --- a/ssh/channel.pxd +++ b/ssh/channel.pxd @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from .session cimport Session diff --git a/ssh/channel.pyx b/ssh/channel.pyx index 9ed207e4..3fa59ca1 100644 --- a/ssh/channel.pyx +++ b/ssh/channel.pyx @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from libc.stdlib cimport malloc, free from libc.string cimport const_char diff --git a/ssh/connector.pxd b/ssh/connector.pxd index 43e3135b..3b175486 100644 --- a/ssh/connector.pxd +++ b/ssh/connector.pxd @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from .session cimport Session diff --git a/ssh/connector.pyx b/ssh/connector.pyx index f7a4055b..cb095b6f 100644 --- a/ssh/connector.pyx +++ b/ssh/connector.pyx @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from cpython cimport PyObject_AsFileDescriptor diff --git a/ssh/error_codes.pyx b/ssh/error_codes.pyx index 88ed8541..5fbbd5de 100644 --- a/ssh/error_codes.pyx +++ b/ssh/error_codes.pyx @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from . cimport c_ssh diff --git a/ssh/event.pxd b/ssh/event.pxd index f4133ef4..053ed041 100644 --- a/ssh/event.pxd +++ b/ssh/event.pxd @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from .session cimport Session from .connector cimport Connector diff --git a/ssh/event.pyx b/ssh/event.pyx index cef5c201..597bb3c6 100644 --- a/ssh/event.pyx +++ b/ssh/event.pyx @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from cpython cimport PyObject_AsFileDescriptor diff --git a/ssh/exceptions.pyx b/ssh/exceptions.pyx index 482de6bd..b0600761 100644 --- a/ssh/exceptions.pyx +++ b/ssh/exceptions.pyx @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 class OptionError(Exception): diff --git a/ssh/key.pxd b/ssh/key.pxd index 19c5e68c..55c53c15 100644 --- a/ssh/key.pxd +++ b/ssh/key.pxd @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from . cimport c_ssh diff --git a/ssh/key.pyx b/ssh/key.pyx index 417c91c4..760fc743 100644 --- a/ssh/key.pyx +++ b/ssh/key.pyx @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from libc.string cimport const_char diff --git a/ssh/keytypes.pxd b/ssh/keytypes.pxd index 3552e444..8d4c8944 100644 --- a/ssh/keytypes.pxd +++ b/ssh/keytypes.pxd @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from .c_ssh cimport ssh_keytypes_e diff --git a/ssh/keytypes.pyx b/ssh/keytypes.pyx index 4920aeaf..dfec92c0 100644 --- a/ssh/keytypes.pyx +++ b/ssh/keytypes.pyx @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018-2020 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from libc.string cimport const_char diff --git a/ssh/options.pxd b/ssh/options.pxd index 4e34184c..6728cdf7 100644 --- a/ssh/options.pxd +++ b/ssh/options.pxd @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from .c_ssh cimport ssh_options_e diff --git a/ssh/options.pyx b/ssh/options.pyx index 33b29f0b..415cd407 100644 --- a/ssh/options.pyx +++ b/ssh/options.pyx @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from .c_ssh cimport ssh_options_e diff --git a/ssh/scp.pxd b/ssh/scp.pxd index eac06e1d..cf1d3c9b 100644 --- a/ssh/scp.pxd +++ b/ssh/scp.pxd @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from .session cimport Session diff --git a/ssh/scp.pyx b/ssh/scp.pyx index b23b6b92..181c9992 100644 --- a/ssh/scp.pyx +++ b/ssh/scp.pyx @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from libc.stdlib cimport malloc, free from libc.string cimport const_char diff --git a/ssh/session.pxd b/ssh/session.pxd index 98da41eb..453e58b9 100644 --- a/ssh/session.pxd +++ b/ssh/session.pxd @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from . cimport c_ssh diff --git a/ssh/session.pyx b/ssh/session.pyx index 80402512..b7ff529a 100644 --- a/ssh/session.pyx +++ b/ssh/session.pyx @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from cpython cimport PyObject_AsFileDescriptor from libc.stdlib cimport malloc, free diff --git a/ssh/sftp.pxd b/ssh/sftp.pxd index 7cafd6f2..115554c0 100644 --- a/ssh/sftp.pxd +++ b/ssh/sftp.pxd @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from .session cimport Session diff --git a/ssh/sftp.pyx b/ssh/sftp.pyx index 5b4efc28..cd2f682a 100644 --- a/ssh/sftp.pyx +++ b/ssh/sftp.pyx @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from libc.stdlib cimport malloc, free diff --git a/ssh/sftp_attributes.pxd b/ssh/sftp_attributes.pxd index 6eccaa6b..a199be9e 100644 --- a/ssh/sftp_attributes.pxd +++ b/ssh/sftp_attributes.pxd @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from .sftp cimport SFTP diff --git a/ssh/sftp_attributes.pyx b/ssh/sftp_attributes.pyx index 1facfffb..c5824220 100644 --- a/ssh/sftp_attributes.pyx +++ b/ssh/sftp_attributes.pyx @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from libc.stdlib cimport malloc, free diff --git a/ssh/sftp_handles.pxd b/ssh/sftp_handles.pxd index fac903eb..b902e119 100644 --- a/ssh/sftp_handles.pxd +++ b/ssh/sftp_handles.pxd @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from .sftp cimport SFTP from .sftp_attributes cimport SFTPAttributes diff --git a/ssh/sftp_handles.pyx b/ssh/sftp_handles.pyx index 059aa1b5..780bd417 100644 --- a/ssh/sftp_handles.pyx +++ b/ssh/sftp_handles.pyx @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from libc.stdlib cimport malloc, free diff --git a/ssh/sftp_statvfs.pxd b/ssh/sftp_statvfs.pxd index ee49093b..39062041 100644 --- a/ssh/sftp_statvfs.pxd +++ b/ssh/sftp_statvfs.pxd @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from .sftp cimport SFTP diff --git a/ssh/sftp_statvfs.pyx b/ssh/sftp_statvfs.pyx index 4526dd4f..44a344be 100644 --- a/ssh/sftp_statvfs.pyx +++ b/ssh/sftp_statvfs.pyx @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from .sftp cimport SFTP diff --git a/ssh/utils.pxd b/ssh/utils.pxd index 16cdad7c..1c5e8ff5 100644 --- a/ssh/utils.pxd +++ b/ssh/utils.pxd @@ -1,19 +1,19 @@ -# This file is part of ssh-python. +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# Copyright (C) 2017-2020 Panos Kittenis +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from .c_ssh cimport ssh_session, ssh_string diff --git a/ssh/utils.pyx b/ssh/utils.pyx index c2d33a2d..8f13794e 100644 --- a/ssh/utils.pyx +++ b/ssh/utils.pyx @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from select import select diff --git a/tests/__init__.py b/tests/__init__.py index e69de29b..c1b9dac2 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -0,0 +1,16 @@ +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 diff --git a/tests/base_case.py b/tests/base_case.py index efd2bfaf..d568f19a 100644 --- a/tests/base_case.py +++ b/tests/base_case.py @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018-2020 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 import os import unittest diff --git a/tests/test_channel.py b/tests/test_channel.py index 44bb39e7..356c724d 100644 --- a/tests/test_channel.py +++ b/tests/test_channel.py @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from ssh.channel import Channel from ssh.session import Session diff --git a/tests/test_connector.py b/tests/test_connector.py index 1821a6f9..2ba3232a 100644 --- a/tests/test_connector.py +++ b/tests/test_connector.py @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 import socket diff --git a/tests/test_event.py b/tests/test_event.py index 26e4cf01..41419412 100644 --- a/tests/test_event.py +++ b/tests/test_event.py @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 import socket diff --git a/tests/test_keys.py b/tests/test_keys.py index 8feab93a..3bb0dcdf 100644 --- a/tests/test_keys.py +++ b/tests/test_keys.py @@ -1,3 +1,20 @@ +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 + import os from ssh.key import (SSHKey, SSH_FILE_FORMAT_OPENSSH, SSH_FILE_FORMAT_PEM, import_pubkey_file, diff --git a/tests/test_keytypes.py b/tests/test_keytypes.py index 4bee8ea0..63a80eef 100644 --- a/tests/test_keytypes.py +++ b/tests/test_keytypes.py @@ -1,3 +1,20 @@ +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 + import unittest from ssh.key import generate diff --git a/tests/test_session.py b/tests/test_session.py index ad78a7bc..807cc40e 100644 --- a/tests/test_session.py +++ b/tests/test_session.py @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 import unittest import socket diff --git a/tests/test_sftp.py b/tests/test_sftp.py index 7cba61b8..44e485fe 100644 --- a/tests/test_sftp.py +++ b/tests/test_sftp.py @@ -1,18 +1,19 @@ -# This file is part of ssh-python. -# Copyright (C) 2018 Panos Kittenis +# This file is part of ssh-python. +# Copyright (C) 2018-2025 Panos Kittenis. +# Copyright (C) 2018-2025 ssh-python Contributors. # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, version 2.1. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, version 2.1. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 from ssh.sftp import SFTP