From 206422a5930d2d5a68b5b75d59bb749ee6a1bbc4 Mon Sep 17 00:00:00 2001 From: Panos Date: Sat, 11 Oct 2025 21:17:11 +0100 Subject: [PATCH] Updated copyright notices --- ci/appveyor/build_package.bat | 16 +++++++++++++ ci/appveyor/build_ssh2.bat | 16 +++++++++++++ ci/appveyor/build_zlib.bat | 16 +++++++++++++ ci/appveyor/fix_version.py | 16 +++++++++++++ ci/appveyor/pypi_upload.py | 16 +++++++++++++ ci/build-manylinux.sh | 24 +++++++++---------- ci/build-wheels.sh | 24 +++++++++---------- ci/docker/manylinux/Dockerfile.2014_x86_64 | 24 +++++++++---------- ci/docker/manylinux/Dockerfile.aarch64 | 24 +++++++++---------- ci/integration_tests/__init__.py | 15 ++++++++++++ ci/integration_tests/base_test.py | 16 +++++++++++++ ci/integration_tests/test_agent.py | 16 +++++++++++++ ci/integration_tests/test_channel.py | 16 +++++++++++++ ci/integration_tests/test_knownhost.py | 16 +++++++++++++ ci/integration_tests/test_session.py | 16 +++++++++++++ ci/integration_tests/test_sftp.py | 16 +++++++++++++ ci/osx-wheel.sh | 25 +++++++++---------- ssh2/__init__.pxd | 2 ++ ssh2/__init__.py | 3 +++ ssh2/agent.pxd | 24 +++++++++---------- ssh2/agent.pyx | 24 +++++++++---------- ssh2/c_pkey.pxd | 28 +++++++++++----------- ssh2/c_sftp.pxd | 24 +++++++++---------- ssh2/c_ssh2.pxd | 24 +++++++++---------- ssh2/c_stat.pxd | 24 +++++++++---------- ssh2/channel.pxd | 24 +++++++++---------- ssh2/channel.pyx | 24 +++++++++---------- ssh2/error_codes.pxd | 24 +++++++++---------- ssh2/error_codes.pyx | 24 +++++++++---------- ssh2/exceptions.pyx | 24 +++++++++---------- ssh2/fileinfo.pxd | 24 +++++++++---------- ssh2/fileinfo.pyx | 24 +++++++++---------- ssh2/knownhost.pxd | 24 +++++++++---------- ssh2/knownhost.pyx | 24 +++++++++---------- ssh2/listener.pxd | 24 +++++++++---------- ssh2/listener.pyx | 24 +++++++++---------- ssh2/pkey.pxd | 24 +++++++++---------- ssh2/pkey.pyx | 24 +++++++++---------- ssh2/publickey.pxd | 24 +++++++++---------- ssh2/publickey.pyx | 24 +++++++++---------- ssh2/session.pxd | 24 +++++++++---------- ssh2/session.pyx | 24 +++++++++---------- ssh2/sftp.pxd | 24 +++++++++---------- ssh2/sftp.pyx | 24 +++++++++---------- ssh2/sftp_handle.pxd | 24 +++++++++---------- ssh2/sftp_handle.pyx | 24 +++++++++---------- ssh2/statinfo.pxd | 24 +++++++++---------- ssh2/statinfo.pyx | 24 +++++++++---------- ssh2/utils.pxd | 24 +++++++++---------- ssh2/utils.pyx | 24 +++++++++---------- tests/__init__.py | 15 ++++++++++++ tests/base_test.py | 16 +++++++++++++ tests/test_agent.py | 16 +++++++++++++ tests/test_channel.py | 16 +++++++++++++ tests/test_exceptions.py | 16 +++++++++++++ tests/test_knownhost.py | 16 +++++++++++++ tests/test_session.py | 16 +++++++++++++ tests/test_sftp.py | 16 +++++++++++++ tests/test_utils.py | 16 +++++++++++++ 59 files changed, 774 insertions(+), 434 deletions(-) diff --git a/ci/appveyor/build_package.bat b/ci/appveyor/build_package.bat index b2742136..a1f52ff1 100755 --- a/ci/appveyor/build_package.bat +++ b/ci/appveyor/build_package.bat @@ -1,3 +1,19 @@ +@REM This file is part of ssh2-python. +@REM Copyright (C) 2017-2025 Panos Kittenis +@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-1301 USA + dir ssh2/ for %%I in (%PYTHONVERS%) do %%I\python.exe -V diff --git a/ci/appveyor/build_ssh2.bat b/ci/appveyor/build_ssh2.bat index 2ac60521..4f2359ae 100755 --- a/ci/appveyor/build_ssh2.bat +++ b/ci/appveyor/build_ssh2.bat @@ -1,3 +1,19 @@ +@REM This file is part of ssh2-python. +@REM Copyright (C) 2017-2025 Panos Kittenis +@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-1301 USA + mkdir build_dir cd build_dir diff --git a/ci/appveyor/build_zlib.bat b/ci/appveyor/build_zlib.bat index be044e7c..aa222665 100755 --- a/ci/appveyor/build_zlib.bat +++ b/ci/appveyor/build_zlib.bat @@ -1,3 +1,19 @@ +@REM This file is part of ssh2-python. +@REM Copyright (C) 2017-2025 Panos Kittenis +@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-1301 USA + 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 8e4aa901..10e7363b 100644 --- a/ci/appveyor/fix_version.py +++ b/ci/appveyor/fix_version.py @@ -1,3 +1,19 @@ +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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 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 + import os from datetime import datetime import subprocess diff --git a/ci/appveyor/pypi_upload.py b/ci/appveyor/pypi_upload.py index b44ce4b6..afeae921 100644 --- a/ci/appveyor/pypi_upload.py +++ b/ci/appveyor/pypi_upload.py @@ -1,3 +1,19 @@ +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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 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 + import sys import subprocess import os diff --git a/ci/build-manylinux.sh b/ci/build-manylinux.sh index bff27cd7..22d06a1d 100755 --- a/ci/build-manylinux.sh +++ b/ci/build-manylinux.sh @@ -1,19 +1,19 @@ #!/bin/bash -xe -# This file is part of ssh2-python. -# Copyright (C) 2017-2022 Panos Kittenis and contributors. +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA tar -czf ci/docker/manylinux/libssh2-${LIBSSH2_VERSION}.tar.gz libssh2 diff --git a/ci/build-wheels.sh b/ci/build-wheels.sh index a5c36bee..8190e10f 100755 --- a/ci/build-wheels.sh +++ b/ci/build-wheels.sh @@ -1,19 +1,19 @@ #!/bin/bash -xe -# This file is part of ssh2-python. -# Copyright (C) 2017-2025 Panos Kittenis and contributors. +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA # Compile wheels # For testing diff --git a/ci/docker/manylinux/Dockerfile.2014_x86_64 b/ci/docker/manylinux/Dockerfile.2014_x86_64 index 16c6ddc8..2bd7ed6d 100644 --- a/ci/docker/manylinux/Dockerfile.2014_x86_64 +++ b/ci/docker/manylinux/Dockerfile.2014_x86_64 @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2022 Panos Kittenis and contributors. +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA 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 61342f4c..376f5778 100644 --- a/ci/docker/manylinux/Dockerfile.aarch64 +++ b/ci/docker/manylinux/Dockerfile.aarch64 @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2022 Panos Kittenis and contributors. +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA FROM quay.io/pypa/manylinux2014_aarch64 ENV OPENSSL=openssl-3.4.0 diff --git a/ci/integration_tests/__init__.py b/ci/integration_tests/__init__.py index e69de29b..c144bd0d 100644 --- a/ci/integration_tests/__init__.py +++ b/ci/integration_tests/__init__.py @@ -0,0 +1,15 @@ +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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 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 diff --git a/ci/integration_tests/base_test.py b/ci/integration_tests/base_test.py index 555918b4..50c6054b 100644 --- a/ci/integration_tests/base_test.py +++ b/ci/integration_tests/base_test.py @@ -1,3 +1,19 @@ +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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 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 + import os import pwd import socket diff --git a/ci/integration_tests/test_agent.py b/ci/integration_tests/test_agent.py index 64a60c5f..b9cb1dec 100644 --- a/ci/integration_tests/test_agent.py +++ b/ci/integration_tests/test_agent.py @@ -1,3 +1,19 @@ +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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 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 + from .base_test import SSH2TestCase from ssh2.agent import Agent diff --git a/ci/integration_tests/test_channel.py b/ci/integration_tests/test_channel.py index f1b77f90..a3820eec 100644 --- a/ci/integration_tests/test_channel.py +++ b/ci/integration_tests/test_channel.py @@ -1,3 +1,19 @@ +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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 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 + import os import socket from subprocess import check_output diff --git a/ci/integration_tests/test_knownhost.py b/ci/integration_tests/test_knownhost.py index 164b1a1b..91f004ae 100644 --- a/ci/integration_tests/test_knownhost.py +++ b/ci/integration_tests/test_knownhost.py @@ -1,3 +1,19 @@ +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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 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 + import os from ssh2.exceptions import KnownHostCheckError diff --git a/ci/integration_tests/test_session.py b/ci/integration_tests/test_session.py index 88382540..e4b4fc3e 100644 --- a/ci/integration_tests/test_session.py +++ b/ci/integration_tests/test_session.py @@ -1,3 +1,19 @@ +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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 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 + from unittest.mock import MagicMock import os import socket diff --git a/ci/integration_tests/test_sftp.py b/ci/integration_tests/test_sftp.py index c5191a32..814ee60d 100644 --- a/ci/integration_tests/test_sftp.py +++ b/ci/integration_tests/test_sftp.py @@ -1,3 +1,19 @@ +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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 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 + import os import platform import shutil diff --git a/ci/osx-wheel.sh b/ci/osx-wheel.sh index befbc321..91bdceda 100755 --- a/ci/osx-wheel.sh +++ b/ci/osx-wheel.sh @@ -1,19 +1,20 @@ #!/bin/bash -xe -# This file is part of ssh2-python. -# Copyright (C) 2017-2022 Panos Kittenis and contributors. +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA + SYSTEM_LIBSSH2_DIR="/opt/homebrew/opt/libssh2/lib" MY_LIBSSH2_DIR="build_dir/src/" LIBSSH2_INCLUDE_DIR="/opt/homebrew/opt/libssh2/include" diff --git a/ssh2/__init__.pxd b/ssh2/__init__.pxd index e69de29b..a9581dae 100644 --- a/ssh2/__init__.pxd +++ b/ssh2/__init__.pxd @@ -0,0 +1,2 @@ +# This file is part of ssh2-python. +# Copyright (C) 2025 Panos Kittenis diff --git a/ssh2/__init__.py b/ssh2/__init__.py index 5080f41c..1d8f4bd3 100644 --- a/ssh2/__init__.py +++ b/ssh2/__init__.py @@ -1,3 +1,6 @@ +# This file is part of ssh2-python. +# Copyright (C) 2025 Panos Kittenis + from . import _version __version__ = _version.get_versions()['version'] del _version diff --git a/ssh2/agent.pxd b/ssh2/agent.pxd index f47c40da..27a67610 100644 --- a/ssh2/agent.pxd +++ b/ssh2/agent.pxd @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from .session cimport Session from . cimport c_ssh2 diff --git a/ssh2/agent.pyx b/ssh2/agent.pyx index 73589a85..c30080bf 100644 --- a/ssh2/agent.pyx +++ b/ssh2/agent.pyx @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from .pkey cimport PublicKey, PyPublicKey from .utils cimport to_bytes diff --git a/ssh2/c_pkey.pxd b/ssh2/c_pkey.pxd index 05e63fa4..6bb16659 100644 --- a/ssh2/c_pkey.pxd +++ b/ssh2/c_pkey.pxd @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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 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 +# 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-1301 USA from . cimport c_ssh2 diff --git a/ssh2/c_sftp.pxd b/ssh2/c_sftp.pxd index 452c6a63..6a06a9f0 100644 --- a/ssh2/c_sftp.pxd +++ b/ssh2/c_sftp.pxd @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from .c_ssh2 cimport LIBSSH2_SESSION, LIBSSH2_CHANNEL, libssh2_uint64_t diff --git a/ssh2/c_ssh2.pxd b/ssh2/c_ssh2.pxd index 238640b9..cea5eb7c 100644 --- a/ssh2/c_ssh2.pxd +++ b/ssh2/c_ssh2.pxd @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from libc.time cimport time_t from .c_stat cimport struct_stat diff --git a/ssh2/c_stat.pxd b/ssh2/c_stat.pxd index 8a62ff7c..9aaa1a9a 100644 --- a/ssh2/c_stat.pxd +++ b/ssh2/c_stat.pxd @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from libc.time cimport time_t diff --git a/ssh2/channel.pxd b/ssh2/channel.pxd index 4384e68f..5a1a2f54 100644 --- a/ssh2/channel.pxd +++ b/ssh2/channel.pxd @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from .session cimport Session from . cimport c_ssh2 diff --git a/ssh2/channel.pyx b/ssh2/channel.pyx index f736d732..94a0ced7 100644 --- a/ssh2/channel.pyx +++ b/ssh2/channel.pyx @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from libc.stdlib cimport malloc, free diff --git a/ssh2/error_codes.pxd b/ssh2/error_codes.pxd index 2622416d..7e61a8ee 100644 --- a/ssh2/error_codes.pxd +++ b/ssh2/error_codes.pxd @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA cdef extern from "libssh2.h" nogil: # Error Codes (defined by libssh2) diff --git a/ssh2/error_codes.pyx b/ssh2/error_codes.pyx index 139059c4..5468106d 100644 --- a/ssh2/error_codes.pyx +++ b/ssh2/error_codes.pyx @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from . cimport error_codes from . cimport c_ssh2 diff --git a/ssh2/exceptions.pyx b/ssh2/exceptions.pyx index 40516592..68c41217 100644 --- a/ssh2/exceptions.pyx +++ b/ssh2/exceptions.pyx @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA class SSH2Error(Exception): diff --git a/ssh2/fileinfo.pxd b/ssh2/fileinfo.pxd index 9fd6f4c9..0c00c335 100644 --- a/ssh2/fileinfo.pxd +++ b/ssh2/fileinfo.pxd @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from . cimport c_ssh2 diff --git a/ssh2/fileinfo.pyx b/ssh2/fileinfo.pyx index f0afd63a..02e51bd8 100644 --- a/ssh2/fileinfo.pyx +++ b/ssh2/fileinfo.pyx @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA """Available only when built on libssh2 >= ``1.7``""" diff --git a/ssh2/knownhost.pxd b/ssh2/knownhost.pxd index 458b8218..cddec97b 100644 --- a/ssh2/knownhost.pxd +++ b/ssh2/knownhost.pxd @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from .session cimport Session from . cimport c_ssh2 diff --git a/ssh2/knownhost.pyx b/ssh2/knownhost.pyx index 776783fb..ef40c0d0 100644 --- a/ssh2/knownhost.pyx +++ b/ssh2/knownhost.pyx @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from base64 import b64decode from libc.stdlib cimport malloc, free diff --git a/ssh2/listener.pxd b/ssh2/listener.pxd index 4831a978..d43e9ad8 100644 --- a/ssh2/listener.pxd +++ b/ssh2/listener.pxd @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from .session cimport Session diff --git a/ssh2/listener.pyx b/ssh2/listener.pyx index b74ed27f..b73fbc3f 100644 --- a/ssh2/listener.pyx +++ b/ssh2/listener.pyx @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from .session cimport Session from .channel cimport PyChannel diff --git a/ssh2/pkey.pxd b/ssh2/pkey.pxd index f99c96ee..1f06cd0e 100644 --- a/ssh2/pkey.pxd +++ b/ssh2/pkey.pxd @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from . cimport c_ssh2 diff --git a/ssh2/pkey.pyx b/ssh2/pkey.pyx index 2004115b..3497d59c 100644 --- a/ssh2/pkey.pyx +++ b/ssh2/pkey.pyx @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from . cimport c_ssh2 diff --git a/ssh2/publickey.pxd b/ssh2/publickey.pxd index 78bd5591..7df09cd2 100644 --- a/ssh2/publickey.pxd +++ b/ssh2/publickey.pxd @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from .session cimport Session from . cimport c_pkey diff --git a/ssh2/publickey.pyx b/ssh2/publickey.pyx index 0102aa0a..8ba5110b 100644 --- a/ssh2/publickey.pyx +++ b/ssh2/publickey.pyx @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from libc.stdlib cimport malloc, free diff --git a/ssh2/session.pxd b/ssh2/session.pxd index c122e93d..08315103 100644 --- a/ssh2/session.pxd +++ b/ssh2/session.pxd @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from . cimport c_ssh2 diff --git a/ssh2/session.pyx b/ssh2/session.pyx index b7e50662..a8685a26 100644 --- a/ssh2/session.pyx +++ b/ssh2/session.pyx @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2025 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from cpython cimport PyObject_AsFileDescriptor from libc.stdlib cimport calloc, malloc, free diff --git a/ssh2/sftp.pxd b/ssh2/sftp.pxd index 3bf47fad..5acbebc1 100644 --- a/ssh2/sftp.pxd +++ b/ssh2/sftp.pxd @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from .session cimport Session diff --git a/ssh2/sftp.pyx b/ssh2/sftp.pyx index 5cc73fff..46941288 100644 --- a/ssh2/sftp.pyx +++ b/ssh2/sftp.pyx @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA """ diff --git a/ssh2/sftp_handle.pxd b/ssh2/sftp_handle.pxd index e261477a..2575df02 100644 --- a/ssh2/sftp_handle.pxd +++ b/ssh2/sftp_handle.pxd @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from .sftp cimport SFTP diff --git a/ssh2/sftp_handle.pyx b/ssh2/sftp_handle.pyx index 10d25723..282432e1 100644 --- a/ssh2/sftp_handle.pyx +++ b/ssh2/sftp_handle.pyx @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA """SFTP handle, attributes and stat VFS classes.""" diff --git a/ssh2/statinfo.pxd b/ssh2/statinfo.pxd index 37b4548f..e3e6cfad 100644 --- a/ssh2/statinfo.pxd +++ b/ssh2/statinfo.pxd @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from .c_stat cimport struct_stat diff --git a/ssh2/statinfo.pyx b/ssh2/statinfo.pyx index 71f7f475..8b6840aa 100644 --- a/ssh2/statinfo.pyx +++ b/ssh2/statinfo.pyx @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from libc.stdlib cimport malloc, free diff --git a/ssh2/utils.pxd b/ssh2/utils.pxd index 7209be8f..b02a427f 100644 --- a/ssh2/utils.pxd +++ b/ssh2/utils.pxd @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA cdef extern from "ext/find_eol.h" nogil: int c_find_eol "find_eol" (char* data, int* new_pos) diff --git a/ssh2/utils.pyx b/ssh2/utils.pyx index 8ee40efe..b24b152f 100644 --- a/ssh2/utils.pyx +++ b/ssh2/utils.pyx @@ -1,18 +1,18 @@ -# This file is part of ssh2-python. -# Copyright (C) 2017-2020 Panos Kittenis +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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-1301 USA from select import select diff --git a/tests/__init__.py b/tests/__init__.py index e69de29b..c144bd0d 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -0,0 +1,15 @@ +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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 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 diff --git a/tests/base_test.py b/tests/base_test.py index 37b67242..f71473c4 100644 --- a/tests/base_test.py +++ b/tests/base_test.py @@ -1,3 +1,19 @@ +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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 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 + import unittest diff --git a/tests/test_agent.py b/tests/test_agent.py index 22a415ff..6cb79a77 100644 --- a/tests/test_agent.py +++ b/tests/test_agent.py @@ -1,3 +1,19 @@ +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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 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 + from ssh2.agent import Agent from ssh2.session import Session diff --git a/tests/test_channel.py b/tests/test_channel.py index ae344e19..1c85a447 100644 --- a/tests/test_channel.py +++ b/tests/test_channel.py @@ -1,3 +1,19 @@ +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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 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 + from ssh2.channel import Channel from ssh2.session import Session diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index c2f6c294..69170374 100644 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -1,3 +1,19 @@ +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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 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 + import unittest from ssh2.error_codes import LIBSSH2_ERROR_NONE, LIBSSH2_ERROR_SOCKET_NONE, \ LIBSSH2_ERROR_BANNER_RECV, LIBSSH2_ERROR_BANNER_SEND, \ diff --git a/tests/test_knownhost.py b/tests/test_knownhost.py index a1541a01..4f2d2a39 100644 --- a/tests/test_knownhost.py +++ b/tests/test_knownhost.py @@ -1,3 +1,19 @@ +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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 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 + import os from base64 import b64encode diff --git a/tests/test_session.py b/tests/test_session.py index 3fc7c38b..ce761312 100644 --- a/tests/test_session.py +++ b/tests/test_session.py @@ -1,3 +1,19 @@ +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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 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 + from ssh2.session import (Session, LIBSSH2_METHOD_HOSTKEY, LIBSSH2_FLAG_SIGPIPE, LIBSSH2_FLAG_COMPRESS, LIBSSH2_FLAG_QUOTE_PATHS, LIBSSH2_FLAG_SK_PRESENCE_REQUIRED, LIBSSH2_FLAG_SK_VERIFICATION_REQUIRED, diff --git a/tests/test_sftp.py b/tests/test_sftp.py index 8cfe672a..c4f3a379 100644 --- a/tests/test_sftp.py +++ b/tests/test_sftp.py @@ -1,3 +1,19 @@ +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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 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 + from ssh2.session import Session from ssh2.sftp import SFTP from ssh2.sftp_handle import SFTPAttributes, SFTPHandle diff --git a/tests/test_utils.py b/tests/test_utils.py index 176090d7..95ee8d9f 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -1,3 +1,19 @@ +# This file is part of ssh2-python. +# Copyright (C) 2017-2025 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 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 + import unittest from ssh2.utils import find_eol