From 292fa3cf2dd8e394efdf47cb4758512d993f8d91 Mon Sep 17 00:00:00 2001 From: Luoyaoming Date: Fri, 9 Dec 2022 09:50:06 +0800 Subject: [PATCH] Import Debian changes 1.10.0-ok1 libssh2 (1.10.0-ok1) yangtze; urgency=low * Initial release. --- debian/README.Debian | 8 + debian/changelog | 5 + debian/control | 42 + debian/copyright | 1084 +++++++++++++++++ debian/libssh2-1-dev.docs | 1 + debian/libssh2-1-dev.examples | 3 + debian/libssh2-1-dev.install | 4 + debian/libssh2-1-dev.manpages | 1 + debian/libssh2-1.docs | 2 + debian/libssh2-1.install | 1 + debian/libssh2-1.symbols | 132 ++ debian/man | 5 + debian/not-installed | 1 + ...-to-.pc-to-facilitate-static-linking.patch | 30 + ...ivate-libraries-nor-link-flags-to-us.patch | 21 + debian/patches/manpage.patch | 14 + debian/patches/series | 3 + debian/patches/ssh2-sh.patch | 15 + debian/rules | 29 + debian/source/format | 1 + debian/tests/control | 2 + debian/tests/unit-test | 16 + debian/upstream/metadata | 4 + debian/watch | 3 + 24 files changed, 1427 insertions(+) create mode 100644 debian/README.Debian create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/libssh2-1-dev.docs create mode 100644 debian/libssh2-1-dev.examples create mode 100644 debian/libssh2-1-dev.install create mode 100644 debian/libssh2-1-dev.manpages create mode 100644 debian/libssh2-1.docs create mode 100644 debian/libssh2-1.install create mode 100644 debian/libssh2-1.symbols create mode 100755 debian/man create mode 100644 debian/not-installed create mode 100644 debian/patches/0001-Add-lgpg-error-to-.pc-to-facilitate-static-linking.patch create mode 100644 debian/patches/0001-Do-not-expose-private-libraries-nor-link-flags-to-us.patch create mode 100644 debian/patches/manpage.patch create mode 100644 debian/patches/series create mode 100644 debian/patches/ssh2-sh.patch create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/tests/control create mode 100644 debian/tests/unit-test create mode 100644 debian/upstream/metadata create mode 100644 debian/watch diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..66054af --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,8 @@ +libssh2 for Debian + +Please edit this to provide information specific to +this libssh2 Debian package. + + (Automatically generated by debmake Version 4.3.1) + + -- Luoyaoming Fri, 09 Dec 2022 09:50:06 +0800 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..2223866 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +libssh2 (1.10.0-ok1) yangtze; urgency=low + + * Initial release. + + -- Luoyaoming Fri, 09 Dec 2022 09:50:06 +0800 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..dc0fae9 --- /dev/null +++ b/debian/control @@ -0,0 +1,42 @@ +Source: libssh2 +Section: libs +Priority: optional +Maintainer: Openkylin Developers +Build-Depends: debhelper-compat (= 13) + , libssl-dev + , zlib1g-dev + , chrpath + , openssh-server +Standards-Version: 4.6.0 +Homepage: https://libssh2.org/ +Rules-Requires-Root: no +Vcs-Browser: https://gitee/openkylin/libssh2 +Vcs-Git: https://gitee/openkylin/libssh2.git + +Package: libssh2-1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Pre-Depends: ${misc:Pre-Depends} +Multi-Arch: same +Description: SSH2 client-side library + libssh2 is a client-side C library implementing the SSH2 protocol. + It supports regular terminal, SCP and SFTP (v1-v5) sessions; + port forwarding, X11 forwarding; password, key-based and + keyboard-interactive authentication. + . + This package contains the runtime library. + +Package: libssh2-1-dev +Section: libdevel +Architecture: any +Depends: libssh2-1 (= ${binary:Version}), ${misc:Depends} + , libssl-dev + , zlib1g-dev +Multi-Arch: same +Description: SSH2 client-side library (development headers) + libssh2 is a client-side C library implementing the SSH2 protocol. + It supports regular terminal, SCP and SFTP (v1-v5) sessions; + port forwarding, X11 forwarding; password, key-based and + keyboard-interactive authentication. + . + This package contains the development files. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..9e7e182 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,1084 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: libssh2 +Source: +# +# Please double check copyright with the licensecheck(1) command. + +Files: Makefile.OpenSSL.inc + Makefile.WinCNG.inc + Makefile.am + Makefile.inc + Makefile.libgcrypt.inc + Makefile.mbedTLS.inc + Makefile.os400qc3.inc + NEWS + NMakefile + README + RELEASE-NOTES + acinclude.m4 + cmake/CheckNonblockingSocketSupport.cmake + cmake/FindmbedTLS.cmake + cmake/max_warnings.cmake + configure.ac + docs/AUTHORS + docs/BINDINGS + docs/HACKING + docs/HACKING-CRYPTO + docs/INSTALL_CMAKE.md + docs/Makefile.am + docs/SECURITY.md + docs/TODO + docs/libssh2_banner_set.3 + docs/libssh2_base64_decode.3 + docs/libssh2_channel_close.3 + docs/libssh2_channel_direct_tcpip.3 + docs/libssh2_channel_direct_tcpip_ex.3 + docs/libssh2_channel_eof.3 + docs/libssh2_channel_exec.3 + docs/libssh2_channel_flush.3 + docs/libssh2_channel_flush_ex.3 + docs/libssh2_channel_flush_stderr.3 + docs/libssh2_channel_forward_accept.3 + docs/libssh2_channel_forward_cancel.3 + docs/libssh2_channel_forward_listen.3 + docs/libssh2_channel_forward_listen_ex.3 + docs/libssh2_channel_free.3 + docs/libssh2_channel_get_exit_signal.3 + docs/libssh2_channel_get_exit_status.3 + docs/libssh2_channel_handle_extended_data.3 + docs/libssh2_channel_handle_extended_data2.3 + docs/libssh2_channel_ignore_extended_data.3 + docs/libssh2_channel_open_ex.3 + docs/libssh2_channel_open_session.3 + docs/libssh2_channel_process_startup.3 + docs/libssh2_channel_read.3 + docs/libssh2_channel_read_ex.3 + docs/libssh2_channel_read_stderr.3 + docs/libssh2_channel_receive_window_adjust.3 + docs/libssh2_channel_receive_window_adjust2.3 + docs/libssh2_channel_request_pty.3 + docs/libssh2_channel_request_pty_ex.3 + docs/libssh2_channel_request_pty_size.3 + docs/libssh2_channel_request_pty_size_ex.3 + docs/libssh2_channel_send_eof.3 + docs/libssh2_channel_set_blocking.3 + docs/libssh2_channel_setenv.3 + docs/libssh2_channel_setenv_ex.3 + docs/libssh2_channel_shell.3 + docs/libssh2_channel_subsystem.3 + docs/libssh2_channel_wait_closed.3 + docs/libssh2_channel_wait_eof.3 + docs/libssh2_channel_window_read.3 + docs/libssh2_channel_window_read_ex.3 + docs/libssh2_channel_window_write.3 + docs/libssh2_channel_window_write_ex.3 + docs/libssh2_channel_write.3 + docs/libssh2_channel_write_ex.3 + docs/libssh2_channel_write_stderr.3 + docs/libssh2_channel_x11_req.3 + docs/libssh2_channel_x11_req_ex.3 + docs/libssh2_exit.3 + docs/libssh2_free.3 + docs/libssh2_hostkey_hash.3 + docs/libssh2_init.3 + docs/libssh2_keepalive_config.3 + docs/libssh2_keepalive_send.3 + docs/libssh2_poll.3 + docs/libssh2_poll_channel_read.3 + docs/libssh2_publickey_add.3 + docs/libssh2_publickey_add_ex.3 + docs/libssh2_publickey_init.3 + docs/libssh2_publickey_list_fetch.3 + docs/libssh2_publickey_list_free.3 + docs/libssh2_publickey_remove.3 + docs/libssh2_publickey_remove_ex.3 + docs/libssh2_publickey_shutdown.3 + docs/libssh2_scp_recv.3 + docs/libssh2_scp_recv2.3 + docs/libssh2_scp_send.3 + docs/libssh2_scp_send64.3 + docs/libssh2_scp_send_ex.3 + docs/libssh2_session_abstract.3 + docs/libssh2_session_banner_get.3 + docs/libssh2_session_banner_set.3 + docs/libssh2_session_block_directions.3 + docs/libssh2_session_callback_set.3 + docs/libssh2_session_disconnect.3 + docs/libssh2_session_disconnect_ex.3 + docs/libssh2_session_flag.3 + docs/libssh2_session_free.3 + docs/libssh2_session_get_blocking.3 + docs/libssh2_session_get_timeout.3 + docs/libssh2_session_handshake.3 + docs/libssh2_session_hostkey.3 + docs/libssh2_session_init.3 + docs/libssh2_session_init_ex.3 + docs/libssh2_session_last_errno.3 + docs/libssh2_session_last_error.3 + docs/libssh2_session_method_pref.3 + docs/libssh2_session_methods.3 + docs/libssh2_session_set_blocking.3 + docs/libssh2_session_set_last_error.3 + docs/libssh2_session_set_timeout.3 + docs/libssh2_session_startup.3 + docs/libssh2_session_supported_algs.3 + docs/libssh2_sftp_close.3 + docs/libssh2_sftp_close_handle.3 + docs/libssh2_sftp_closedir.3 + docs/libssh2_sftp_fsetstat.3 + docs/libssh2_sftp_fstat.3 + docs/libssh2_sftp_fstat_ex.3 + docs/libssh2_sftp_fstatvfs.3 + docs/libssh2_sftp_fsync.3 + docs/libssh2_sftp_get_channel.3 + docs/libssh2_sftp_init.3 + docs/libssh2_sftp_last_error.3 + docs/libssh2_sftp_lstat.3 + docs/libssh2_sftp_mkdir.3 + docs/libssh2_sftp_mkdir_ex.3 + docs/libssh2_sftp_open.3 + docs/libssh2_sftp_open_ex.3 + docs/libssh2_sftp_opendir.3 + docs/libssh2_sftp_read.3 + docs/libssh2_sftp_readdir.3 + docs/libssh2_sftp_readdir_ex.3 + docs/libssh2_sftp_readlink.3 + docs/libssh2_sftp_realpath.3 + docs/libssh2_sftp_rename.3 + docs/libssh2_sftp_rename_ex.3 + docs/libssh2_sftp_rewind.3 + docs/libssh2_sftp_rmdir.3 + docs/libssh2_sftp_rmdir_ex.3 + docs/libssh2_sftp_seek.3 + docs/libssh2_sftp_seek64.3 + docs/libssh2_sftp_setstat.3 + docs/libssh2_sftp_shutdown.3 + docs/libssh2_sftp_stat.3 + docs/libssh2_sftp_stat_ex.3 + docs/libssh2_sftp_statvfs.3 + docs/libssh2_sftp_symlink.3 + docs/libssh2_sftp_symlink_ex.3 + docs/libssh2_sftp_tell.3 + docs/libssh2_sftp_tell64.3 + docs/libssh2_sftp_unlink.3 + docs/libssh2_sftp_unlink_ex.3 + docs/libssh2_sftp_write.3 + docs/libssh2_trace.3 + docs/libssh2_trace_sethandler.3 + docs/libssh2_userauth_authenticated.3 + docs/libssh2_userauth_hostbased_fromfile.3 + docs/libssh2_userauth_hostbased_fromfile_ex.3 + docs/libssh2_userauth_keyboard_interactive.3 + docs/libssh2_userauth_keyboard_interactive_ex.3 + docs/libssh2_userauth_list.3 + docs/libssh2_userauth_password.3 + docs/libssh2_userauth_password_ex.3 + docs/libssh2_userauth_publickey.3 + docs/libssh2_userauth_publickey_fromfile.3 + docs/libssh2_userauth_publickey_fromfile_ex.3 + docs/libssh2_userauth_publickey_frommemory.3 + docs/libssh2_version.3 + docs/template.3 + example/Makefile.am + example/direct_tcpip.c + example/libssh2_config.h.in + example/scp.c + example/scp_nonblock.c + example/scp_write.c + example/scp_write_nonblock.c + example/sftp.c + example/sftp_RW_nonblock.c + example/sftp_append.c + example/sftp_mkdir.c + example/sftp_mkdir_nonblock.c + example/sftp_nonblock.c + example/sftp_write.c + example/sftp_write_nonblock.c + example/sftp_write_sliding.c + example/sftpdir.c + example/sftpdir_nonblock.c + example/ssh2.c + example/ssh2_agent.c + example/ssh2_agent_forwarding.c + example/ssh2_echo.c + example/ssh2_exec.c + example/subsystem_netconf.c + example/tcpip-forward.c + example/x11.c + get_ver.awk + libssh2.pc.in + maketgz + nw/GNUmakefile + nw/keepscreen.c + nw/nwlib.c + nw/test/GNUmakefile + os400/README400 + os400/initscript.sh + os400/libssh2rpg/libssh2.rpgle.in + os400/libssh2rpg/libssh2_ccsid.rpgle.in + os400/libssh2rpg/libssh2_publickey.rpgle + os400/libssh2rpg/libssh2_sftp.rpgle + os400/make-include.sh + os400/make-rpg.sh + os400/make-src.sh + os400/make.sh + src/Makefile.am + src/NMakefile + src/libssh2.pc.in + src/libssh2_config.h.in + tests/Makefile.am + tests/etc/host + tests/etc/host.pub + tests/etc/user + tests/etc/user.pub + tests/key_dsa + tests/key_dsa.pub + tests/key_dsa_wrong + tests/key_dsa_wrong.pub + tests/key_ecdsa + tests/key_ecdsa.pub + tests/key_ed25519 + tests/key_ed25519.pub + tests/key_ed25519_encrypted + tests/key_ed25519_encrypted.pub + tests/key_rsa + tests/key_rsa.pub + tests/key_rsa_encrypted + tests/key_rsa_encrypted.pub + tests/key_rsa_openssh + tests/key_rsa_openssh.pub + tests/mansyntax.sh + tests/openssh_server/authorized_keys + tests/openssh_server/ca_ecdsa + tests/openssh_server/ca_ecdsa.pub + tests/openssh_server/ssh_host_ecdsa_key + tests/openssh_server/ssh_host_ed25519_key + tests/openssh_server/ssh_host_rsa_key + tests/ossfuzz/Makefile.am + tests/ossfuzz/ssh2_client_fuzzer.cc + tests/ossfuzz/standaloneengine.cc + tests/ossfuzz/testinput.h + tests/ssh2.c + tests/ssh2.sh + tests/sshd_fixture.sh.in + tests/test_agent_forward_succeeds.c + tests/test_hostkey.c + tests/test_hostkey_hash.c + tests/test_keyboard_interactive_auth_fails_with_wrong_response.c + tests/test_keyboard_interactive_auth_succeeds_with_correct_response.c + tests/test_password_auth_fails_with_wrong_password.c + tests/test_password_auth_fails_with_wrong_username.c + tests/test_password_auth_succeeds_with_correct_credentials.c + tests/test_public_key_auth_fails_with_wrong_key.c + tests/test_public_key_auth_succeeds_with_correct_dsa_key.c + tests/test_public_key_auth_succeeds_with_correct_ecdsa_key.c + tests/test_public_key_auth_succeeds_with_correct_ed25519_key.c + tests/test_public_key_auth_succeeds_with_correct_ed25519_key_from_mem.c + tests/test_public_key_auth_succeeds_with_correct_encrypted_ed25519_key.c + tests/test_public_key_auth_succeeds_with_correct_encrypted_rsa_key.c + tests/test_public_key_auth_succeeds_with_correct_rsa_key.c + tests/test_public_key_auth_succeeds_with_correct_rsa_openssh_key.c + tests/test_public_key_auth_succeeds_with_correct_signed_ecdsa_key.c + vms/libssh2_config.h + vms/libssh2_make_example.dcl + vms/libssh2_make_help.dcl + vms/libssh2_make_kit.dcl + vms/libssh2_make_lib.dcl + vms/man2help.c + vms/readme.vms + win32/GNUmakefile + win32/Makefile.Watcom + win32/config.mk + win32/libssh2.dsp + win32/libssh2.dsw + win32/libssh2.rc + win32/libssh2_config.h + win32/msvcproj.foot + win32/msvcproj.head + win32/rules.mk + win32/test/GNUmakefile + win32/tests.dsp +Copyright: __NO_COPYRIGHT_NOR_LICENSE__ +License: __NO_COPYRIGHT_NOR_LICENSE__ + +Files: CMakeLists.txt + cmake/CheckFunctionExistsMayNeedLibrary.cmake + cmake/CopyRuntimeDependencies.cmake + docs/CMakeLists.txt + example/CMakeLists.txt + include/libssh2.h + include/libssh2_sftp.h + os400/include/alloca.h + os400/include/stdio.h + os400/include/sys/socket.h + os400/libssh2_config.h + os400/macros.h + src/CMakeLists.txt + src/agent.c + src/agent.h + src/agent_win.c + src/channel.c + src/channel.h + src/comp.c + src/comp.h + src/crypt.c + src/crypto.h + src/global.c + src/hostkey.c + src/keepalive.c + src/kex.c + src/knownhost.c + src/libgcrypt.c + src/libgcrypt.h + src/libssh2_priv.h + src/mac.c + src/mac.h + src/mbedtls.c + src/mbedtls.h + src/misc.c + src/misc.h + src/openssl.c + src/openssl.h + src/packet.c + src/packet.h + src/pem.c + src/publickey.c + src/scp.c + src/session.c + src/sftp.c + src/sftp.h + src/userauth.c + src/userauth.h + src/version.c + src/wincng.c + tests/CMakeLists.txt + tests/openssh_fixture.c + tests/openssh_fixture.h + tests/openssh_server/Dockerfile + tests/runner.c + tests/session_fixture.c + tests/session_fixture.h + tests/simple.c +Copyright: 2004-2019 Sara Golemon + 2005 Mikhail Gusarov + 2005-2006 Mikhail Gusarov + 2006-2007 The Written Word, Inc. + 2007 Eli Fant + 2008-2010 Simon Josefsson + 2008-2019 Daniel Stenberg + 2009 Daiki Ueno + 2009 Daniel Stenberg. + 2009-2010 Simon Josefsson + 2010 Lars Nordin + 2010-2019 Daniel Stenberg + 2013-2020 Marc Hoersken + 2014-2016 Alexander Lamaison + 2015 Patrick Monnerat, D+H + 2016 Alexander Lamaison + 2016 Art +License: BSD-3-Clause + Redistribution and use in source and binary forms, + with or without modification, are permitted provided + that the following conditions are met: + . + Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + . + Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials + provided with the distribution. + . + Neither the name of the copyright holder nor the names + of any other contributors may be used to endorse or + promote products derived from this software without + specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE + USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + OF SUCH DAMAGE. + . + On Debian systems, the complete text of the BSD 3-clause "New" or "Revised" + License can be found in `/usr/share/common-licenses/BSD'. + +Files: Makefile.in + aclocal.m4 + compile + config.guess + config.rpath + config.sub + configure + depcomp + docs/Makefile.in + example/Makefile.in + install-sh + ltmain.sh + m4/lib-ld.m4 + m4/lib-link.m4 + m4/lib-prefix.m4 + m4/libtool.m4 + m4/ltoptions.m4 + m4/ltsugar.m4 + m4/ltversion.m4 + m4/lt~obsolete.m4 + missing + src/Makefile.in + test-driver + tests/Makefile.in + tests/ossfuzz/Makefile.in +Copyright: 1992-2021 Free Software Foundation, Inc. + 1994 X Consortium +License: __AUTO_PERMISSIVE__ + Autogenerated files with permissive licenses. + +Files: docs/libssh2_agent_connect.3 + docs/libssh2_agent_disconnect.3 + docs/libssh2_agent_free.3 + docs/libssh2_agent_get_identity.3 + docs/libssh2_agent_get_identity_path.3 + docs/libssh2_agent_init.3 + docs/libssh2_agent_list_identities.3 + docs/libssh2_agent_set_identity_path.3 + docs/libssh2_agent_userauth.3 + docs/libssh2_knownhost_add.3 + docs/libssh2_knownhost_addc.3 + docs/libssh2_knownhost_check.3 + docs/libssh2_knownhost_checkp.3 + docs/libssh2_knownhost_del.3 + docs/libssh2_knownhost_free.3 + docs/libssh2_knownhost_get.3 + docs/libssh2_knownhost_init.3 + docs/libssh2_knownhost_readfile.3 + docs/libssh2_knownhost_readline.3 + docs/libssh2_knownhost_writefile.3 + docs/libssh2_knownhost_writeline.3 +Copyright: 2009 Daiki Ueno + 2009-2011 Daniel Stenberg + 2019 Will Cosgrove +License: __NO_LICENSE__ + +Files: example/libssh2_config_cmake.h.in + src/libssh2_config_cmake.h.in + tests/libssh2_config_cmake.h.in +Copyright: 1999-2011 Douglas Gilbert. + 2014 Alexander Lamaison +License: BSD-3-Clause + Redistribution and use in source and binary forms, + with or without modification, are permitted provided + that the following conditions are met: + . + Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + . + Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials + provided with the distribution. + . + Neither the name of the copyright holder nor the names + of any other contributors may be used to endorse or + promote products derived from this software without + specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE + USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + OF SUCH DAMAGE. + . + Headers + . + On Debian systems, the complete text of the BSD 3-clause "New" or "Revised" + License can be found in `/usr/share/common-licenses/BSD'. + +Files: src/transport.c + src/transport.h +Copyright: 2007 The Written Word, Inc. + 2009-2010 Daniel Stenberg +License: BSD-3-Clause + Redistribution and use in source and binary forms, + with or without modification, are permitted provided + that the following conditions are met: + . + Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + . + Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials + provided with the distribution. + . + Neither the name of the copyright holder nor the names + of any other contributors may be used to endorse or + promote products derived from this software without + specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE + USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + OF SUCH DAMAGE. + . + This file handles reading and writing to the SECSH transport layer. RFC4253. + . + On Debian systems, the complete text of the BSD 3-clause "New" or "Revised" + License can be found in `/usr/share/common-licenses/BSD'. + +Files: src/bcrypt_pbkdf.c +Copyright: 2013 Ted Unangst +License: ISC + Permission to use, copy, modify, and distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + . + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +Files: docs/INSTALL_AUTOTOOLS +Copyright: 1994-2005 Free Software Foundation, Inc. +License: __UNKNOWN__ + This file is free documentation; the Free Software Foundation gives + unlimited permission to copy, distribute and modify it. + . + When Building directly from Master + +Files: cmake/SocketLibraries.cmake +Copyright: 2014 Alexander Lamaison +License: BSD-3-Clause + Redistribution and use in source and binary forms, + with or without modification, are permitted provided + that the following conditions are met: + . + Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + . + Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials + provided with the distribution. + . + Neither the name of the copyright holder nor the names + of any other contributors may be used to endorse or + promote products derived from this software without + specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE + USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + OF SUCH DAMAGE. + . + Some systems have their socket functions in a library. + . + On Debian systems, the complete text of the BSD 3-clause "New" or "Revised" + License can be found in `/usr/share/common-licenses/BSD'. + +Files: cmake/FindLibgcrypt.cmake +Copyright: 2014 Alexander Lamaison +License: BSD-3-Clause + Redistribution and use in source and binary forms, + with or without modification, are permitted provided + that the following conditions are met: + . + Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + . + Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials + provided with the distribution. + . + Neither the name of the copyright holder nor the names + of any other contributors may be used to endorse or + promote products derived from this software without + specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE + USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + OF SUCH DAMAGE. + . + - Try to find Libgcrypt + This will define all or none of: + . + On Debian systems, the complete text of the BSD 3-clause "New" or "Revised" + License can be found in `/usr/share/common-licenses/BSD'. + +Files: os400/libssh2_ccsid.h +Copyright: 2015 Patrick Monnerat, D+H +License: BSD-3-Clause + Redistribution and use in source and binary forms, + with or without modification, are permitted provided + that the following conditions are met: + . + Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + . + Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials + provided with the distribution. + . + Neither the name of the copyright holder nor the names + of any other contributors may be used to endorse or + promote products derived from this software without + specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE + USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + OF SUCH DAMAGE. + . + CCSID conversion support. + . + On Debian systems, the complete text of the BSD 3-clause "New" or "Revised" + License can be found in `/usr/share/common-licenses/BSD'. + +Files: os400/os400sys.c +Copyright: 2015 Patrick Monnerat, D+H +License: BSD-3-Clause + Redistribution and use in source and binary forms, + with or without modification, are permitted provided + that the following conditions are met: + . + Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + . + Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials + provided with the distribution. + . + Neither the name of the copyright holder nor the names + of any other contributors may be used to endorse or + promote products derived from this software without + specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE + USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + OF SUCH DAMAGE. + . + OS/400 additional support. + . + On Debian systems, the complete text of the BSD 3-clause "New" or "Revised" + License can be found in `/usr/share/common-licenses/BSD'. + +Files: os400/ccsid.c +Copyright: 2015 Patrick Monnerat, D+H +License: BSD-3-Clause + Redistribution and use in source and binary forms, + with or without modification, are permitted provided + that the following conditions are met: + . + Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + . + Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials + provided with the distribution. + . + Neither the name of the copyright holder nor the names + of any other contributors may be used to endorse or + promote products derived from this software without + specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE + USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + OF SUCH DAMAGE. + . + Character encoding wrappers. + . + On Debian systems, the complete text of the BSD 3-clause "New" or "Revised" + License can be found in `/usr/share/common-licenses/BSD'. + +Files: cmake/Toolchain-Linux-32.cmake +Copyright: 2014 Alexander Lamaison +License: BSD-3-Clause + Redistribution and use in source and binary forms, + with or without modification, are permitted provided + that the following conditions are met: + . + Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + . + Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials + provided with the distribution. + . + Neither the name of the copyright holder nor the names + of any other contributors may be used to endorse or + promote products derived from this software without + specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE + USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + OF SUCH DAMAGE. + . + Cross-compile 32-bit binary on 64-bit linux host + . + On Debian systems, the complete text of the BSD 3-clause "New" or "Revised" + License can be found in `/usr/share/common-licenses/BSD'. + +Files: src/session.h +Copyright: 2004-2007 Sara Golemon + 2009-2010 Daniel Stenberg + 2010 Simon Josefsson +License: BSD-3-Clause + Redistribution and use in source and binary forms, + with or without modification, are permitted provided + that the following conditions are met: + . + Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + . + Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials + provided with the distribution. + . + Neither the name of the copyright holder nor the names + of any other contributors may be used to endorse or + promote products derived from this software without + specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE + USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + OF SUCH DAMAGE. + . + Conveniance-macros to allow code like this; + . + On Debian systems, the complete text of the BSD 3-clause "New" or "Revised" + License can be found in `/usr/share/common-licenses/BSD'. + +Files: include/libssh2_publickey.h +Copyright: 2004-2006 Sara Golemon +License: BSD-3-Clause + Redistribution and use in source and binary forms, + with or without modification, are permitted provided + that the following conditions are met: + . + Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + . + Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials + provided with the distribution. + . + Neither the name of the copyright holder nor the names + of any other contributors may be used to endorse or + promote products derived from this software without + specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE + USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + OF SUCH DAMAGE. + . + Note: This include file is only needed for using the + publickey SUBSYSTEM which is not the same as publickey + authentication. For authentication you only need libssh2.h + . + For more information on the publickey subsystem, + refer to IETF draft: secsh-publickey + . + On Debian systems, the complete text of the BSD 3-clause "New" or "Revised" + License can be found in `/usr/share/common-licenses/BSD'. + +Files: src/wincng.h +Copyright: 2013-2020 Marc Hoersken +License: BSD-3-Clause + Redistribution and use in source and binary forms, + with or without modification, are permitted provided + that the following conditions are met: + . + Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + . + Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials + provided with the distribution. + . + Neither the name of the copyright holder nor the names + of any other contributors may be used to endorse or + promote products derived from this software without + specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE + USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + OF SUCH DAMAGE. + . + required for cross-compilation against the w64 mingw-runtime package + . + On Debian systems, the complete text of the BSD 3-clause "New" or "Revised" + License can be found in `/usr/share/common-licenses/BSD'. + +Files: src/blf.h +Copyright: 1997 Niels Provos +License: BSD-4-Clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. All advertising materials mentioning features or use of this software + must display the following acknowledgement: + This product includes software developed by Niels Provos. + 4. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Files: src/blowfish.c +Copyright: 1997 Niels Provos +License: BSD-4-Clause + Implementation advice by David Mazieres . + . + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. All advertising materials mentioning features or use of this software + must display the following acknowledgement: + This product includes software developed by Niels Provos. + 4. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + . + This code is derived from section 14.3 and the given source + in section V of Applied Cryptography, second edition. + Blowfish is an unpatented fast block cipher designed by + Bruce Schneier. + +Files: m4/autobuild.m4 +Copyright: 2004-2006 Simon Josefsson +License: __UNKNOWN__ with autoconf exception + This file is free software, distributed under the terms of the GNU + General Public License. As a special exception to the GNU General + Public License, this file may be distributed as part of a program + that contains a configuration script generated by Autoconf, under + the same distribution terms as the rest of that program. + . + This file can can be used in projects which are not available under + the GNU General Public License or the GNU Library General Public + License but which still want to provide support for Autobuild. + +#---------------------------------------------------------------------------- +# Files marked as NO_LICENSE_TEXT_FOUND may be covered by the following +# license/copyright files. + +#---------------------------------------------------------------------------- +# License file: COPYING + /* Copyright (c) 2004-2007 Sara Golemon + * Copyright (c) 2005,2006 Mikhail Gusarov + * Copyright (c) 2006-2007 The Written Word, Inc. + * Copyright (c) 2007 Eli Fant + * Copyright (c) 2009-2021 Daniel Stenberg + * Copyright (C) 2008, 2009 Simon Josefsson + * Copyright (c) 2000 Markus Friedl + * Copyright (c) 2015 Microsoft Corp. + * All rights reserved. + * + * Redistribution and use in source and binary forms, + * with or without modification, are permitted provided + * that the following conditions are met: + * + * Redistributions of source code must retain the above + * copyright notice, this list of conditions and the + * following disclaimer. + * + * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the copyright holder nor the names + * of any other contributors may be used to endorse or + * promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE + * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + * OF SUCH DAMAGE. + */ + . diff --git a/debian/libssh2-1-dev.docs b/debian/libssh2-1-dev.docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/debian/libssh2-1-dev.docs @@ -0,0 +1 @@ +README diff --git a/debian/libssh2-1-dev.examples b/debian/libssh2-1-dev.examples new file mode 100644 index 0000000..6d889cc --- /dev/null +++ b/debian/libssh2-1-dev.examples @@ -0,0 +1,3 @@ +example/*.c +example/*.h.in +example/Makefile* diff --git a/debian/libssh2-1-dev.install b/debian/libssh2-1-dev.install new file mode 100644 index 0000000..2f818cf --- /dev/null +++ b/debian/libssh2-1-dev.install @@ -0,0 +1,4 @@ +usr/include/* +usr/lib/*/*.a +usr/lib/*/*.so +usr/lib/*/pkgconfig/*.pc diff --git a/debian/libssh2-1-dev.manpages b/debian/libssh2-1-dev.manpages new file mode 100644 index 0000000..f317fb7 --- /dev/null +++ b/debian/libssh2-1-dev.manpages @@ -0,0 +1 @@ +usr/share/man/man3/libssh2*.3 diff --git a/debian/libssh2-1.docs b/debian/libssh2-1.docs new file mode 100644 index 0000000..e3e6096 --- /dev/null +++ b/debian/libssh2-1.docs @@ -0,0 +1,2 @@ +docs/AUTHORS +RELEASE-NOTES diff --git a/debian/libssh2-1.install b/debian/libssh2-1.install new file mode 100644 index 0000000..3de3b10 --- /dev/null +++ b/debian/libssh2-1.install @@ -0,0 +1 @@ +usr/lib/*/*.so.* diff --git a/debian/libssh2-1.symbols b/debian/libssh2-1.symbols new file mode 100644 index 0000000..d984d0b --- /dev/null +++ b/debian/libssh2-1.symbols @@ -0,0 +1,132 @@ +# SymbolsHelper-Confirmed: 1.10.0 amd64 +libssh2.so.1 libssh2-1 #MINVER# +* Build-Depends-Package: libssh2-1-dev + libssh2_agent_connect@Base 1.2.3 + libssh2_agent_disconnect@Base 1.2.3 + libssh2_agent_free@Base 1.2.3 + libssh2_agent_get_identity@Base 1.2.3 + libssh2_agent_get_identity_path@Base 1.9.0 + libssh2_agent_init@Base 1.2.3 + libssh2_agent_list_identities@Base 1.2.3 + libssh2_agent_set_identity_path@Base 1.9.0 + libssh2_agent_userauth@Base 1.2.3 + libssh2_banner_set@Base 1.0 + libssh2_base64_decode@Base 1.0 + libssh2_channel_close@Base 1.0 + libssh2_channel_direct_tcpip_ex@Base 1.0 + libssh2_channel_eof@Base 1.0 + libssh2_channel_flush_ex@Base 1.0 + libssh2_channel_forward_accept@Base 1.0 + libssh2_channel_forward_cancel@Base 1.0 + libssh2_channel_forward_listen_ex@Base 1.0 + libssh2_channel_free@Base 1.0 + libssh2_channel_get_exit_signal@Base 1.2.8 + libssh2_channel_get_exit_status@Base 1.0 + libssh2_channel_handle_extended_data2@Base 1.0 + libssh2_channel_handle_extended_data@Base 1.0 + libssh2_channel_open_ex@Base 1.0 + libssh2_channel_process_startup@Base 1.0 + libssh2_channel_read_ex@Base 1.0 + libssh2_channel_receive_window_adjust2@Base 1.1 + libssh2_channel_receive_window_adjust@Base 1.0 + libssh2_channel_request_auth_agent@Base 1.10 + libssh2_channel_request_pty_ex@Base 1.0 + libssh2_channel_request_pty_size_ex@Base 1.0 + libssh2_channel_send_eof@Base 1.0 + libssh2_channel_set_blocking@Base 1.0 + libssh2_channel_setenv_ex@Base 1.0 + libssh2_channel_wait_closed@Base 1.0 + libssh2_channel_wait_eof@Base 1.0 + libssh2_channel_window_read_ex@Base 1.0 + libssh2_channel_window_write_ex@Base 1.0 + libssh2_channel_write_ex@Base 1.0 + libssh2_channel_x11_req_ex@Base 1.0 + libssh2_crypt_methods@Base 1.0 + libssh2_exit@Base 1.2.5 + libssh2_free@Base 1.2.8 + libssh2_hostkey_hash@Base 1.0 + libssh2_hostkey_methods@Base 1.0 + libssh2_init@Base 1.2.5 + libssh2_keepalive_config@Base 1.2.5 + libssh2_keepalive_send@Base 1.2.5 + libssh2_knownhost_add@Base 1.2 + libssh2_knownhost_addc@Base 1.2.5 + libssh2_knownhost_check@Base 1.2 + libssh2_knownhost_checkp@Base 1.2.6 + libssh2_knownhost_del@Base 1.2 + libssh2_knownhost_free@Base 1.2 + libssh2_knownhost_get@Base 1.2 + libssh2_knownhost_init@Base 1.2 + libssh2_knownhost_readfile@Base 1.2 + libssh2_knownhost_readline@Base 1.2 + libssh2_knownhost_writefile@Base 1.2 + libssh2_knownhost_writeline@Base 1.2 + libssh2_poll@Base 1.0 + libssh2_poll_channel_read@Base 1.0 + libssh2_publickey_add_ex@Base 1.0 + libssh2_publickey_init@Base 1.0 + libssh2_publickey_list_fetch@Base 1.0 + libssh2_publickey_list_free@Base 1.0 + libssh2_publickey_remove_ex@Base 1.0 + libssh2_publickey_shutdown@Base 1.0 + libssh2_scp_recv@Base 1.0 + libssh2_scp_recv2@Base 1.7.0 + libssh2_scp_send64@Base 1.2.6 + libssh2_scp_send_ex@Base 1.0 + libssh2_session_abstract@Base 1.0 + libssh2_session_banner_get@Base 1.4.0 + libssh2_session_banner_set@Base 1.4.0 + libssh2_session_block_directions@Base 1.0 + libssh2_session_callback_set@Base 1.0 + libssh2_session_disconnect_ex@Base 1.0 + libssh2_session_flag@Base 1.0 + libssh2_session_free@Base 1.0 + libssh2_session_get_blocking@Base 1.0 + libssh2_session_get_timeout@Base 1.2.9 + libssh2_session_handshake@Base 1.2.8 + libssh2_session_hostkey@Base 1.2 + libssh2_session_init_ex@Base 1.0 + libssh2_session_last_errno@Base 1.0 + libssh2_session_last_error@Base 1.0 + libssh2_session_method_pref@Base 1.0 + libssh2_session_methods@Base 1.0 + libssh2_session_set_blocking@Base 1.0 + libssh2_session_set_last_error@Base 1.7.0 + libssh2_session_set_timeout@Base 1.2.9 + libssh2_session_startup@Base 1.0 + libssh2_session_supported_algs@Base 1.4.0 + libssh2_sftp_close_handle@Base 1.0 + libssh2_sftp_dtor@Base 1.0 + libssh2_sftp_fstat_ex@Base 1.0 + libssh2_sftp_fstatvfs@Base 1.2.6 + libssh2_sftp_fsync@Base 1.5.0 + libssh2_sftp_get_channel@Base 1.4.0 + libssh2_sftp_init@Base 1.0 + libssh2_sftp_last_error@Base 1.0 + libssh2_sftp_mkdir_ex@Base 1.0 + libssh2_sftp_open_ex@Base 1.0 + libssh2_sftp_read@Base 1.0 + libssh2_sftp_readdir_ex@Base 1.0 + libssh2_sftp_rename_ex@Base 1.0 + libssh2_sftp_rmdir_ex@Base 1.0 + libssh2_sftp_seek64@Base 1.0 + libssh2_sftp_seek@Base 1.0 + libssh2_sftp_shutdown@Base 1.0 + libssh2_sftp_stat_ex@Base 1.0 + libssh2_sftp_statvfs@Base 1.2. + libssh2_sftp_symlink_ex@Base 1.0 + libssh2_sftp_tell64@Base 1.0 + libssh2_sftp_tell@Base 1.0 + libssh2_sftp_unlink_ex@Base 1.0 + libssh2_sftp_write@Base 1.0 + libssh2_trace@Base 1.0 + libssh2_trace_sethandler@Base 1.2.3 + libssh2_userauth_authenticated@Base 1.0 + libssh2_userauth_hostbased_fromfile_ex@Base 1.0 + libssh2_userauth_publickey_frommemory@Base 1.7.0 + libssh2_userauth_keyboard_interactive_ex@Base 1.0 + libssh2_userauth_list@Base 1.0 + libssh2_userauth_password_ex@Base 1.0 + libssh2_userauth_publickey@Base 1.2.3 + libssh2_userauth_publickey_fromfile_ex@Base 1.0 + libssh2_version@Base 1.1 diff --git a/debian/man b/debian/man new file mode 100755 index 0000000..e2abb2f --- /dev/null +++ b/debian/man @@ -0,0 +1,5 @@ +#!/bin/sh + +# Stub to avoid running mansyntax.sh test + +exit 0 diff --git a/debian/not-installed b/debian/not-installed new file mode 100644 index 0000000..f403946 --- /dev/null +++ b/debian/not-installed @@ -0,0 +1 @@ +usr/lib/*/*.la diff --git a/debian/patches/0001-Add-lgpg-error-to-.pc-to-facilitate-static-linking.patch b/debian/patches/0001-Add-lgpg-error-to-.pc-to-facilitate-static-linking.patch new file mode 100644 index 0000000..fa8cc9b --- /dev/null +++ b/debian/patches/0001-Add-lgpg-error-to-.pc-to-facilitate-static-linking.patch @@ -0,0 +1,30 @@ +From 2fc4ef54ec61e98e757a49719b859d8ee59af952 Mon Sep 17 00:00:00 2001 +From: Mikhail Gusarov +Date: Wed, 3 Sep 2014 15:47:19 +0200 +Subject: [PATCH] Add -lgpg-error to .pc to facilitate static linking + +Note that this patch is Debian-specific as we know that libssh2 is linked +to gcrypt. + +Patching configure.ac to add gpg-error as a dependent library is not good, as it +would cause overlinking of libssh2, and there is no separate variable for +"static dependencies". + +All this mess ought to be solved in gcrypt inself by providing .pc file, +but it is not. + +--- + libssh2.pc.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: libssh2/libssh2.pc.in +=================================================================== +--- libssh2.orig/libssh2.pc.in ++++ libssh2/libssh2.pc.in +@@ -13,5 +13,5 @@ Description: Library for SSH-based commu + Version: @LIBSSH2VER@ + Requires.private: @LIBSREQUIRED@ + Libs: -L${libdir} -lssh2 @LIBS@ +-Libs.private: @LIBS@ ++Libs.private: @LIBS@ -lgpg-error + Cflags: -I${includedir} diff --git a/debian/patches/0001-Do-not-expose-private-libraries-nor-link-flags-to-us.patch b/debian/patches/0001-Do-not-expose-private-libraries-nor-link-flags-to-us.patch new file mode 100644 index 0000000..5d9b6f6 --- /dev/null +++ b/debian/patches/0001-Do-not-expose-private-libraries-nor-link-flags-to-us.patch @@ -0,0 +1,21 @@ +From a5ba7bd8c57cf5362b1245b7de1c3cf3439e7176 Mon Sep 17 00:00:00 2001 +From: Mikhail Gusarov +Date: Mon, 19 May 2014 10:12:10 +0200 +Subject: [PATCH] Do not expose private libraries nor link flags to users of + libssh2 + +Reported in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747417 +--- + libssh2.pc.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/libssh2.pc.in ++++ b/libssh2.pc.in +@@ -12,6 +12,6 @@ + Description: Library for SSH-based communication + Version: @LIBSSH2VER@ + Requires.private: @LIBSREQUIRED@ +-Libs: -L${libdir} -lssh2 @LIBS@ ++Libs: -L${libdir} -lssh2 + Libs.private: @LIBS@ -lgpg-error + Cflags: -I${includedir} diff --git a/debian/patches/manpage.patch b/debian/patches/manpage.patch new file mode 100644 index 0000000..5c5d8e6 --- /dev/null +++ b/debian/patches/manpage.patch @@ -0,0 +1,14 @@ +Description: Fix typo +Author: Nicolas Mora +Forwarded: not-needed +--- a/docs/libssh2_userauth_publickey_frommemory.3 ++++ b/docs/libssh2_userauth_publickey_frommemory.3 +@@ -14,7 +14,7 @@ + size_t privatekeydata_len, + const char *passphrase); + .SH DESCRIPTION +-This function allows to authenticate a session with a public key read from memory. ++This function allows one to authenticate a session with a public key read from memory. + It's only supported when libssh2 is backed by OpenSSL. + \fIsession\fP - Session instance as returned by + .BR libssh2_session_init_ex(3) diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..ff04e97 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,3 @@ +manpage.patch +0001-Add-lgpg-error-to-.pc-to-facilitate-static-linking.patch +0001-Do-not-expose-private-libraries-nor-link-flags-to-us.patch diff --git a/debian/patches/ssh2-sh.patch b/debian/patches/ssh2-sh.patch new file mode 100644 index 0000000..fa93aa7 --- /dev/null +++ b/debian/patches/ssh2-sh.patch @@ -0,0 +1,15 @@ +Description: Fix ssh2 test +Author: Nicolas Mora +Forwarded: not-needed +--- a/tests/ssh2.sh ++++ b/tests/ssh2.sh +@@ -25,7 +25,8 @@ + -o 'Port 4711' \ + -o 'Protocol 2' \ + -o "AuthorizedKeysFile $srcdir/etc/user.pub" \ +- -o 'UsePrivilegeSeparation no' \ ++ -o 'HostKeyAlgorithms +ssh-rsa' \ ++ -o 'PubkeyAcceptedAlgorithms +ssh-rsa' \ + -o 'StrictModes no' \ + -D \ + $libssh2_sshd_params & diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..56965f3 --- /dev/null +++ b/debian/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) + +# openssl license issue has been fixed: #668271, #924937 +#CONFIGURE_EXTRA_FLAGS += --with-libgcrypt --without-openssl +CONFIGURE_EXTRA_FLAGS += --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) +CONFIGURE_EXTRA_FLAGS += --disable-rpath + +%: + dh $@ --with autoreconf + +override_dh_auto_configure: + dh_auto_configure -- $(CONFIGURE_EXTRA_FLAGS) + +override_dh_installexamples: + dh_installexamples -a -X .deps -X Makefile -X .gitignore + +override_dh_installchangelogs: + dh_installchangelogs NEWS + +# +# mansyntax.sh test duplicates functionality of debhelper and requires presence +# of en_US.utf8 locale. Ensure it is not run by providing a fake man(1) tool. +# +override_dh_auto_test: + PATH=$(CURDIR)/debian:$$PATH dh_auto_test -a diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..81efd7c --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,2 @@ +Tests: unit-test +Depends: @, gcc, libc-dev, autoconf, libssl-dev, zlib1g-dev, chrpath, openssh-server diff --git a/debian/tests/unit-test b/debian/tests/unit-test new file mode 100644 index 0000000..5479049 --- /dev/null +++ b/debian/tests/unit-test @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +exec 2>&1 + +./configure --disable-static --disable-rpath + +make + +rm -f src/.libs/libssh2.so* +ln -s /usr/lib/$(dpkg-architecture -qDEB_BUILD_MULTIARCH)/libssh2.so src/.libs/ +ln -s /usr/lib/$(dpkg-architecture -qDEB_BUILD_MULTIARCH)/libssh2.so.? src/.libs/ +ln -s /usr/lib/$(dpkg-architecture -qDEB_BUILD_MULTIARCH)/libssh2.so.?.?.? src/.libs/ + +make check diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..f476aea --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,4 @@ +Bug-Database: https://github.com/libssh2/libssh2/issues +Bug-Submit: https://github.com/libssh2/libssh2/issues/new +Repository: https://github.com/libssh2/libssh2.git +Repository-Browse: https://github.com/libssh2/libssh2 diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..3c47ca8 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=4 +https://www.libssh2.org/download/libssh2-(.+)\.tar\.gz +pgpmode=auto