Repository: libssh2/libssh2 (c)

Issue:
SPDX identifiers and a CI job to check them all
- All files have prominent copyright and SPDX identifier
- If not embedded in the file, in the .reuse/dep5 file
- All used licenses are in LICENSES/ (not shipped in tarballs)
- A new REUSE CI job verify that all files are OK



Discussion:

Patch:
diff --git a/.github/workflows/appveyor_docker.yml b/.github/workflows/appveyor_docker.yml
--- a/.github/workflows/appveyor_docker.yml
+++ b/.github/workflows/appveyor_docker.yml
@@ -21,6 +21,8 @@
 # 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.
+#
+# SPDX-License-Identifier: BSD-3-Clause
 
 name: AppVeyor Docker Bridge
 
diff --git a/.github/workflows/appveyor_status.yml b/.github/workflows/appveyor_status.yml
--- a/.github/workflows/appveyor_status.yml
+++ b/.github/workflows/appveyor_status.yml
@@ -21,6 +21,8 @@
 # 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.
+#
+# SPDX-License-Identifier: BSD-3-Clause
 
 name: AppVeyor Status Report
 
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,3 +1,7 @@
+# Copyright (C) The libssh2 project and its contributors.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
 name: CI
 
 on:
diff --git a/.github/workflows/cifuzz.yml b/.github/workflows/cifuzz.yml
--- a/.github/workflows/cifuzz.yml
+++ b/.github/workflows/cifuzz.yml
@@ -1,3 +1,7 @@
+# Copyright (C) The libssh2 project and its contributors.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
 name: CIFuzz
 on: [pull_request]
 
diff --git a/.github/workflows/openssh_server.yml b/.github/workflows/openssh_server.yml
--- a/.github/workflows/openssh_server.yml
+++ b/.github/workflows/openssh_server.yml
@@ -21,6 +21,8 @@
 # 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.
+#
+# SPDX-License-Identifier: BSD-3-Clause
 
 name: OpenSSH Server Docker Image
 
diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml
new file mode 100644
--- /dev/null
+++ b/.github/workflows/reuse.yml
@@ -0,0 +1,29 @@
+# Copyright (C) Daniel Stenberg
+# SPDX-FileCopyrightText: 2022 Free Software Foundation Europe e.V. <https://fsfe.org>
+#
+# SPDX-License-Identifier: BSD-3-Clause
+
+name: REUSE compliance
+
+on:
+  push:
+    branches:
+    - master
+    - '*/ci'
+  pull_request:
+    branches:
+    - master
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
+  cancel-in-progress: true
+
+permissions: {}
+
+jobs:
+  check:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v3
+    - name: REUSE Compliance Check
+      uses: fsfe/reuse-action@v1
diff --git a/.reuse/dep5 b/.reuse/dep5
new file mode 100644
--- /dev/null
+++ b/.reuse/dep5
@@ -0,0 +1,34 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: libssh2
+Upstream-Contact: The libssh2 team <libssh2-devel@lists.haxx.se>
+Source: https://libssh2.org/
+
+# Test data
+Files: tests/openssh_server/* tests/ossfuzz/* tests/key_* tests/test_read_algos.txt
+Copyright: The libssh2 project and its contributors.
+License: BSD-3-Clause
+
+# Root files
+Files: NEWS README README.md RELEASE-NOTES
+Copyright: The libssh2 project and its contributors.
+License: BSD-3-Clause
+
+# Docs
+Files: docs/.gitignore docs/AUTHORS docs/BINDINGS.md docs/HACKING-CRYPTO docs/HACKING.md docs/INSTALL_CMAKE.md docs/Makefile.am docs/SECURITY.md docs/TODO docs/template.3 os400/README400
+Copyright: The libssh2 project and its contributors.
+License: BSD-3-Clause
+
+# vms files
+Files: 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 
+Copyright: The libssh2 project and its contributors.
+License: BSD-3-Clause
+
+# dot files
+Files: .checksrc .editorconfig .github/ISSUE_TEMPLATE/bug_report.md .github/SECURITY.md .github/stale.yml .gitignore example/.gitignore m4/.gitignore src/.gitignore tests/.gitignore
+Copyright: The libssh2 project and its contributors.
+License: BSD-3-Clause
+
+# autotools INSTALL
+Files: docs/INSTALL_AUTOTOOLS
+Copyright: Free Software Foundation, Inc.
+License: FSFULLR
diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -33,6 +33,8 @@
 # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
 # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
 # OF SUCH DAMAGE.
+#
+# SPDX-License-Identifier: BSD-3-Clause
 
 include(CheckFunctionExists)
 include(CheckSymbolExists)
diff --git a/LICENSES/BSD-2-Clause.txt b/LICENSES/BSD-2-Clause.txt
new file mode 100644
--- /dev/null
+++ b/LICENSES/BSD-2-Clause.txt
@@ -0,0 +1,9 @@
+Copyright <YEAR> <COPYRIGHT HOLDER>
+
+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.
+
+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 HOLDER 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/LICENSES/BSD-3-Clause.txt b/LICENSES/BSD-3-Clause.txt
new file mode 100644
--- /dev/null
+++ b/LICENSES/BSD-3-Clause.txt
@@ -0,0 +1,11 @@
+Copyright (c) <year> <owner>.
+
+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. Neither the name of the copyright holder nor the names of its 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 HOLDER 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/LICENSES/FSFULLR.txt b/LICENSES/FSFULLR.txt
new file mode 100644
--- /dev/null
+++ b/LICENSES/FSFULLR.txt
@@ -0,0 +1,5 @@
+# Copyright Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt
new file mode 100644
--- /dev/null
+++ b/LICENSES/MIT.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) [year] [fullname]
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/LICENSES/curl.txt b/LICENSES/curl.txt
new file mode 100644
--- /dev/null
+++ b/LICENSES/curl.txt
@@ -0,0 +1,21 @@
+COPYRIGHT AND PERMISSION NOTICE
+
+Copyright (C) Daniel Stenberg, <daniel@haxx.se>, and many contributors.
+
+All rights reserved.
+
+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", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
+NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
+OR OTHER DEALINGS IN THE SOFTWARE.
+
+Except as contained in this notice, the name of a copyright holder shall not
+be used in advertising or otherwise to promote the sale, use or other dealings
+in this Software without prior written authorization of the copyright holder.
diff --git a/Makefile.am b/Makefile.am
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,5 @@
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
 AUTOMAKE_OPTIONS = foreign nostdinc
 
 SUBDIRS = src docs
diff --git a/Makefile.mk b/Makefile.mk
--- a/Makefile.mk
+++ b/Makefile.mk
@@ -3,10 +3,12 @@
 # Makefile for building libssh2 with GCC-like toolchains.
 # Use: make -f Makefile.mk [help|all|clean|dist|distclean|dyn|objclean|example|exampleclean|test|testclean]
 #
-# Written by Guenter Knauf and Viktor Szakats
+# Copyright (C) Guenter Knauf
+# Copyright (C) Viktor Szakats
 #
 # Look for ' ?=' to find accepted customization variables.
 #
+# SPDX-License-Identifier: BSD-3-Clause
 #########################################################################
 
 ### Common
diff --git a/NMakefile b/NMakefile
--- a/NMakefile
+++ b/NMakefile
@@ -1,3 +1,6 @@
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
+
 !if "$(TARGET)" == ""
 TARGET=Release
 !endif
diff --git a/acinclude.m4 b/acinclude.m4
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1,3 +1,5 @@
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
 dnl CURL_CPP_P
 dnl
 dnl Check if $cpp -P should be used for extract define values due to gcc 5
diff --git a/appveyor.yml b/appveyor.yml
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -24,6 +24,8 @@
 # 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.
+#
+# SPDX-License-Identifier: BSD-3-Clause
 
 # https://www.appveyor.com/docs/windows-images-software/
 
diff --git a/buildconf b/buildconf
--- a/buildconf
+++ b/buildconf
@@ -1,4 +1,6 @@
 #!/bin/sh
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
 
 echo "***" >&2
 echo "*** Do not use buildconf. Instead, use: autoreconf -fi" >&2
diff --git a/ci/appveyor/docker-bridge.ps1 b/ci/appveyor/docker-bridge.ps1
--- a/ci/appveyor/docker-bridge.ps1
+++ b/ci/appveyor/docker-bridge.ps1
@@ -1,4 +1,6 @@
 #!/usr/bin/env pwsh
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
 
 # Partially copied from https://github.com/appveyor/ci/blob/master/scripts/enable-rdp.ps1
 
diff --git a/ci/appveyor/docker-bridge.sh b/ci/appveyor/docker-bridge.sh
--- a/ci/appveyor/docker-bridge.sh
+++ b/ci/appveyor/docker-bridge.sh
@@ -1,4 +1,6 @@
 #!/bin/sh
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
 
 set -e
 
diff --git a/ci/checksrc.sh b/ci/checksrc.sh
--- a/ci/checksrc.sh
+++ b/ci/checksrc.sh
@@ -1,4 +1,6 @@
 #!/usr/bin/env bash
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
 
 set -e
 
diff --git a/cmake/CheckFunctionExistsMayNeedLibrary.cmake b/cmake/CheckFunctionExistsMayNeedLibrary.cmake
--- a/cmake/CheckFunctionExistsMayNeedLibrary.cmake
+++ b/cmake/CheckFunctionExistsMayNeedLibrary.cmake
@@ -32,6 +32,8 @@
 # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
 # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
 # OF SUCH DAMAGE.
+#
+# SPDX-License-Identifier: BSD-3-Clause
 
 
 # - check_function_exists_maybe_need_library(<function> <var> [lib1 ... libn])
diff --git a/cmake/CheckNonblockingSocketSupport.cmake b/cmake/CheckNonblockingSocketSupport.cmake
--- a/cmake/CheckNonblockingSocketSupport.cmake
+++ b/cmake/CheckNonblockingSocketSupport.cmake
@@ -1,3 +1,5 @@
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
 include(CheckCSourceCompiles)
 
 # - check_nonblocking_socket_support()
diff --git a/cmake/CopyRuntimeDependencies.cmake b/cmake/CopyRuntimeDependencies.cmake
--- a/cmake/CopyRuntimeDependencies.cmake
+++ b/cmake/CopyRuntimeDependencies.cmake
@@ -32,6 +32,8 @@
 # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
 # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
 # OF SUCH DAMAGE.
+#
+# SPDX-License-Identifier: BSD-3-Clause
 
 include(CMakeParseArguments)
 
diff --git a/cmake/FindLibgcrypt.cmake b/cmake/FindLibgcrypt.cmake
--- a/cmake/FindLibgcrypt.cmake
+++ b/cmake/FindLibgcrypt.cmake
@@ -32,6 +32,8 @@
 # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
 # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
 # OF SUCH DAMAGE.
+#
+# SPDX-License-Identifier: BSD-3-Clause
 
 # - Try to find Libgcrypt
 # This will define all or none of:
diff --git a/cmake/FindmbedTLS.cmake b/cmake/FindmbedTLS.cmake
--- a/cmake/FindmbedTLS.cmake
+++ b/cmake/FindmbedTLS.cmake
@@ -1,3 +1,6 @@
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
+#
 # - Try to find mbedTLS
 # Once done this will define
 #
diff --git a/cmake/Findwolfssl.cmake b/cmake/Findwolfssl.cmake
--- a/cmake/Findwolfssl.cmake
+++ b/cmake/Findwolfssl.cmake
@@ -1,3 +1,6 @@
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
+#
 # - Try to find wolfssl
 # Once done this will define
 #  WOLFSSL_FOUND           - System has wolfssl
diff --git a/cmake/max_warnings.cmake b/cmake/max_warnings.cmake
--- a/cmake/max_warnings.cmake
+++ b/cmake/max_warnings.cmake
@@ -1,4 +1,5 @@
 # Copyright (C) Viktor Szakats
+# SPDX-License-Identifier: BSD-3-Clause
 
 include(CheckCCompilerFlag)
 
diff --git a/config.rpath b/config.rpath
--- a/config.rpath
+++ b/config.rpath
@@ -24,6 +24,8 @@
 #   than 256 bytes, otherwise the compiler driver will dump core. The only
 #   known workaround is to choose shorter directory names for the build
 #   directory and/or the installation directory.
+#
+# SPDX-License-Identifier: FSFULLR
 
 # All known linkers require a `.a' archive for static linking (except MSVC,
 # which needs '.lib').
diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -1,3 +1,8 @@
+# Copyright (C) The libssh2 project and its contributors.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
 # AC_PREREQ(2.59)
 AC_INIT([libssh2],[-],[libssh2-devel@lists.haxx.se])
 AC_CONFIG_MACRO_DIR([m4])
diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt
--- a/docs/CMakeLists.txt
+++ b/docs/CMakeLists.txt
@@ -33,6 +33,8 @@
 # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
 # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
 # OF SUCH DAMAGE.
+#
+# SPDX-License-Identifier: BSD-3-Clause
 
 transform_makefile_inc("Makefile.am" "${CMAKE_CURRENT_BINARY_DIR}/Makefile.am.cmake")
 # Get 'dist_man_MANS' variable
diff --git a/docs/libssh2_agent_connect.3 b/docs/libssh2_agent_connect.3
--- a/docs/libssh2_agent_connect.3
+++ b/docs/libssh2_agent_connect.3
@@ -1,6 +1,5 @@
-.\"
 .\" Copyright (C) Daiki Ueno
-.\"
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_agent_connect 3 "23 Dec 2009" "libssh2" "libssh2"
 .SH NAME
 libssh2_agent_connect - connect to an ssh-agent
diff --git a/docs/libssh2_agent_disconnect.3 b/docs/libssh2_agent_disconnect.3
--- a/docs/libssh2_agent_disconnect.3
+++ b/docs/libssh2_agent_disconnect.3
@@ -1,6 +1,5 @@
-.\"
 .\" Copyright (C) Daiki Ueno
-.\"
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_agent_disconnect 3 "23 Dec 2009" "libssh2" "libssh2"
 .SH NAME
 libssh2_agent_disconnect - close a connection to an ssh-agent
diff --git a/docs/libssh2_agent_free.3 b/docs/libssh2_agent_free.3
--- a/docs/libssh2_agent_free.3
+++ b/docs/libssh2_agent_free.3
@@ -1,6 +1,5 @@
-.\"
 .\" Copyright (C) Daiki Ueno
-.\"
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_agent_free 3 "28 May 2009" "libssh2" "libssh2"
 .SH NAME
 libssh2_agent_free - free an ssh-agent handle
diff --git a/docs/libssh2_agent_get_identity.3 b/docs/libssh2_agent_get_identity.3
--- a/docs/libssh2_agent_get_identity.3
+++ b/docs/libssh2_agent_get_identity.3
@@ -1,6 +1,5 @@
-.\"
 .\" Copyright (C) Daiki Ueno
-.\"
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_agent_get_identity 3 "23 Dec 2009" "libssh2" "libssh2"
 .SH NAME
 libssh2_agent_get_identity - get a public key off the collection of public keys managed by ssh-agent
diff --git a/docs/libssh2_agent_get_identity_path.3 b/docs/libssh2_agent_get_identity_path.3
--- a/docs/libssh2_agent_get_identity_path.3
+++ b/docs/libssh2_agent_get_identity_path.3
@@ -1,6 +1,5 @@
-.\"
 .\" Copyright (C) Will Cosgrove
-.\"
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_agent_get_identity_path 3 "6 Mar 2019" "libssh2" "libssh2"
 .SH NAME
 libssh2_agent_get_identity_path - gets the custom ssh-agent socket path
diff --git a/docs/libssh2_agent_init.3 b/docs/libssh2_agent_init.3
--- a/docs/libssh2_agent_init.3
+++ b/docs/libssh2_agent_init.3
@@ -1,6 +1,5 @@
-.\"
 .\" Copyright (C) Daiki Ueno
-.\"
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_agent_init 3 "23 Dec 2009" "libssh2" "libssh2"
 .SH NAME
 libssh2_agent_init - init an ssh-agent handle
diff --git a/docs/libssh2_agent_list_identities.3 b/docs/libssh2_agent_list_identities.3
--- a/docs/libssh2_agent_list_identities.3
+++ b/docs/libssh2_agent_list_identities.3
@@ -1,6 +1,5 @@
-.\"
 .\" Copyright (C) Daiki Ueno
-.\"
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_agent_list_identities 3 "23 Dec 2009" "libssh2" "libssh2"
 .SH NAME
 libssh2_agent_list_identities - request an ssh-agent to list of public keys.
diff --git a/docs/libssh2_agent_set_identity_path.3 b/docs/libssh2_agent_set_identity_path.3
--- a/docs/libssh2_agent_set_identity_path.3
+++ b/docs/libssh2_agent_set_identity_path.3
@@ -1,6 +1,5 @@
-.\"
 .\" Copyright (C) Will Cosgrove
-.\"
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_agent_set_identity_path 3 "6 Mar 2019" "libssh2" "libssh2"
 .SH NAME
 libssh2_agent_set_identity_path - set an ssh-agent socket path on disk
diff --git a/docs/libssh2_agent_sign.3 b/docs/libssh2_agent_sign.3
--- a/docs/libssh2_agent_sign.3
+++ b/docs/libssh2_agent_sign.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_agent_sign 3 "1 Oct 2022" "libssh2" "libssh2"
 .SH NAME
 libssh2_agent_sign - sign data, with the help of ssh-agent
diff --git a/docs/libssh2_agent_userauth.3 b/docs/libssh2_agent_userauth.3
--- a/docs/libssh2_agent_userauth.3
+++ b/docs/libssh2_agent_userauth.3
@@ -1,6 +1,5 @@
-.\"
 .\" Copyright (C) Daiki Ueno
-.\"
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_agent_userauth 3 "23 Dec 2009" "libssh2" "libssh2"
 .SH NAME
 libssh2_agent_userauth - authenticate a session with a public key, with the help of ssh-agent
diff --git a/docs/libssh2_banner_set.3 b/docs/libssh2_banner_set.3
--- a/docs/libssh2_banner_set.3
+++ b/docs/libssh2_banner_set.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_banner_set 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_banner_set - set the SSH protocol banner for the local client
diff --git a/docs/libssh2_base64_decode.3 b/docs/libssh2_base64_decode.3
--- a/docs/libssh2_base64_decode.3
+++ b/docs/libssh2_base64_decode.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_base64_decode 3 "23 Dec 2008" "libssh2 1.0" "libssh2"
 .SH NAME
 libssh2_base64_decode - decode a base64 encoded string
diff --git a/docs/libssh2_channel_close.3 b/docs/libssh2_channel_close.3
--- a/docs/libssh2_channel_close.3
+++ b/docs/libssh2_channel_close.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_close 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_close - close a channel
diff --git a/docs/libssh2_channel_direct_streamlocal_ex.3 b/docs/libssh2_channel_direct_streamlocal_ex.3
--- a/docs/libssh2_channel_direct_streamlocal_ex.3
+++ b/docs/libssh2_channel_direct_streamlocal_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_direct_streamlocal_ex 3 "10 Apr 2023" "libssh2 1.11.0" "libssh2"
 .SH NAME
 libssh2_channel_direct_streamlocal_ex - Tunnel a UNIX socket connection through an SSH session
diff --git a/docs/libssh2_channel_direct_tcpip.3 b/docs/libssh2_channel_direct_tcpip.3
--- a/docs/libssh2_channel_direct_tcpip.3
+++ b/docs/libssh2_channel_direct_tcpip.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_direct_tcpip 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_channel_direct_tcpip - convenience macro for \fIlibssh2_channel_direct_tcpip_ex(3)\fP calls
diff --git a/docs/libssh2_channel_direct_tcpip_ex.3 b/docs/libssh2_channel_direct_tcpip_ex.3
--- a/docs/libssh2_channel_direct_tcpip_ex.3
+++ b/docs/libssh2_channel_direct_tcpip_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_direct_tcpip_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_direct_tcpip_ex - Tunnel a TCP connection through an SSH session
diff --git a/docs/libssh2_channel_eof.3 b/docs/libssh2_channel_eof.3
--- a/docs/libssh2_channel_eof.3
+++ b/docs/libssh2_channel_eof.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_eof 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_eof - check a channel's EOF status
diff --git a/docs/libssh2_channel_exec.3 b/docs/libssh2_channel_exec.3
--- a/docs/libssh2_channel_exec.3
+++ b/docs/libssh2_channel_exec.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_exec 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_channel_exec - convenience macro for \fIlibssh2_channel_process_startup(3)\fP calls
diff --git a/docs/libssh2_channel_flush.3 b/docs/libssh2_channel_flush.3
--- a/docs/libssh2_channel_flush.3
+++ b/docs/libssh2_channel_flush.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_flush 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_channel_flush - convenience macro for \fIlibssh2_channel_flush_ex(3)\fP calls
diff --git a/docs/libssh2_channel_flush_ex.3 b/docs/libssh2_channel_flush_ex.3
--- a/docs/libssh2_channel_flush_ex.3
+++ b/docs/libssh2_channel_flush_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_flush_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_flush_ex - flush a channel
diff --git a/docs/libssh2_channel_flush_stderr.3 b/docs/libssh2_channel_flush_stderr.3
--- a/docs/libssh2_channel_flush_stderr.3
+++ b/docs/libssh2_channel_flush_stderr.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_flush_stderr 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_channel_flush_stderr - convenience macro for \fIlibssh2_channel_flush_ex(3)\fP calls
diff --git a/docs/libssh2_channel_forward_accept.3 b/docs/libssh2_channel_forward_accept.3
--- a/docs/libssh2_channel_forward_accept.3
+++ b/docs/libssh2_channel_forward_accept.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_forward_accept 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_forward_accept - accept a queued connection
diff --git a/docs/libssh2_channel_forward_cancel.3 b/docs/libssh2_channel_forward_cancel.3
--- a/docs/libssh2_channel_forward_cancel.3
+++ b/docs/libssh2_channel_forward_cancel.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_forward_cancel 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_forward_cancel - cancel a forwarded TCP port
diff --git a/docs/libssh2_channel_forward_listen.3 b/docs/libssh2_channel_forward_listen.3
--- a/docs/libssh2_channel_forward_listen.3
+++ b/docs/libssh2_channel_forward_listen.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_forward_listen 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_channel_forward_listen - convenience macro for \fIlibssh2_channel_forward_listen_ex(3)\fP calls
diff --git a/docs/libssh2_channel_forward_listen_ex.3 b/docs/libssh2_channel_forward_listen_ex.3
--- a/docs/libssh2_channel_forward_listen_ex.3
+++ b/docs/libssh2_channel_forward_listen_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_forward_listen_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_forward_listen_ex - listen to inbound connections
diff --git a/docs/libssh2_channel_free.3 b/docs/libssh2_channel_free.3
--- a/docs/libssh2_channel_free.3
+++ b/docs/libssh2_channel_free.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_free 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_free - free all resources associated with a channel
diff --git a/docs/libssh2_channel_get_exit_signal.3 b/docs/libssh2_channel_get_exit_signal.3
--- a/docs/libssh2_channel_get_exit_signal.3
+++ b/docs/libssh2_channel_get_exit_signal.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_get_exit_signal 3 "4 Oct 2010" "libssh2 1.2.8" "libssh2"
 .SH NAME
 libssh2_channel_get_exit_signal - get the remote exit signal
diff --git a/docs/libssh2_channel_get_exit_status.3 b/docs/libssh2_channel_get_exit_status.3
--- a/docs/libssh2_channel_get_exit_status.3
+++ b/docs/libssh2_channel_get_exit_status.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_get_exit_status 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_get_exit_status - get the remote exit code
diff --git a/docs/libssh2_channel_handle_extended_data.3 b/docs/libssh2_channel_handle_extended_data.3
--- a/docs/libssh2_channel_handle_extended_data.3
+++ b/docs/libssh2_channel_handle_extended_data.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_handle_extended_data 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_handle_extended_data - set extended data handling mode
diff --git a/docs/libssh2_channel_handle_extended_data2.3 b/docs/libssh2_channel_handle_extended_data2.3
--- a/docs/libssh2_channel_handle_extended_data2.3
+++ b/docs/libssh2_channel_handle_extended_data2.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_handle_extended_data2 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_handle_extended_data2 - set extended data handling mode
diff --git a/docs/libssh2_channel_ignore_extended_data.3 b/docs/libssh2_channel_ignore_extended_data.3
--- a/docs/libssh2_channel_ignore_extended_data.3
+++ b/docs/libssh2_channel_ignore_extended_data.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_ignore_extended_data 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_channel_ignore_extended_data - convenience macro for \fIlibssh2_channel_handle_extended_data(3)\fP calls
diff --git a/docs/libssh2_channel_open_ex.3 b/docs/libssh2_channel_open_ex.3
--- a/docs/libssh2_channel_open_ex.3
+++ b/docs/libssh2_channel_open_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_open_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_open_ex - establish a generic session channel
diff --git a/docs/libssh2_channel_open_session.3 b/docs/libssh2_channel_open_session.3
--- a/docs/libssh2_channel_open_session.3
+++ b/docs/libssh2_channel_open_session.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_open_session 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_channel_open_session - convenience macro for \fIlibssh2_channel_open_ex(3)\fP calls
diff --git a/docs/libssh2_channel_process_startup.3 b/docs/libssh2_channel_process_startup.3
--- a/docs/libssh2_channel_process_startup.3
+++ b/docs/libssh2_channel_process_startup.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_process_startup 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_process_startup - request a shell on a channel
diff --git a/docs/libssh2_channel_read.3 b/docs/libssh2_channel_read.3
--- a/docs/libssh2_channel_read.3
+++ b/docs/libssh2_channel_read.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_read 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_channel_read - convenience macro for \fIlibssh2_channel_read_ex(3)\fP calls
diff --git a/docs/libssh2_channel_read_ex.3 b/docs/libssh2_channel_read_ex.3
--- a/docs/libssh2_channel_read_ex.3
+++ b/docs/libssh2_channel_read_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_read_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_read_ex - read data from a channel stream
diff --git a/docs/libssh2_channel_read_stderr.3 b/docs/libssh2_channel_read_stderr.3
--- a/docs/libssh2_channel_read_stderr.3
+++ b/docs/libssh2_channel_read_stderr.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_read_stderr 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_channel_read_stderr - convenience macro for \fIlibssh2_channel_read_ex(3)\fP calls
diff --git a/docs/libssh2_channel_receive_window_adjust.3 b/docs/libssh2_channel_receive_window_adjust.3
--- a/docs/libssh2_channel_receive_window_adjust.3
+++ b/docs/libssh2_channel_receive_window_adjust.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_receive_window_adjust 3 "15 Mar 2009" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_receive_window_adjust - adjust the channel window
diff --git a/docs/libssh2_channel_receive_window_adjust2.3 b/docs/libssh2_channel_receive_window_adjust2.3
--- a/docs/libssh2_channel_receive_window_adjust2.3
+++ b/docs/libssh2_channel_receive_window_adjust2.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_receive_window_adjust2 3 "26 Mar 2009" "libssh2 1.1" "libssh2"
 .SH NAME
 libssh2_channel_receive_window_adjust2 - adjust the channel window
diff --git a/docs/libssh2_channel_request_auth_agent.3 b/docs/libssh2_channel_request_auth_agent.3
--- a/docs/libssh2_channel_request_auth_agent.3
+++ b/docs/libssh2_channel_request_auth_agent.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_request_auth_agent 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_request_auth_agent - request agent forwarding for a session
diff --git a/docs/libssh2_channel_request_pty.3 b/docs/libssh2_channel_request_pty.3
--- a/docs/libssh2_channel_request_pty.3
+++ b/docs/libssh2_channel_request_pty.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_request_pty 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_channel_request_pty - convenience macro for \fIlibssh2_channel_request_pty_ex(3)\fP calls
diff --git a/docs/libssh2_channel_request_pty_ex.3 b/docs/libssh2_channel_request_pty_ex.3
--- a/docs/libssh2_channel_request_pty_ex.3
+++ b/docs/libssh2_channel_request_pty_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_request_pty_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_request_pty_ex - short function description
diff --git a/docs/libssh2_channel_request_pty_size.3 b/docs/libssh2_channel_request_pty_size.3
--- a/docs/libssh2_channel_request_pty_size.3
+++ b/docs/libssh2_channel_request_pty_size.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_request_pty_size 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_channel_request_pty_size - convenience macro for \fIlibssh2_channel_request_pty_size_ex(3)\fP calls
diff --git a/docs/libssh2_channel_request_pty_size_ex.3 b/docs/libssh2_channel_request_pty_size_ex.3
--- a/docs/libssh2_channel_request_pty_size_ex.3
+++ b/docs/libssh2_channel_request_pty_size_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_request_pty_size_ex 3 "1 Jun 2007" "libssh2" "libssh2"
 .SH NAME
 libssh2_channel_request_pty_size_ex - TODO
diff --git a/docs/libssh2_channel_send_eof.3 b/docs/libssh2_channel_send_eof.3
--- a/docs/libssh2_channel_send_eof.3
+++ b/docs/libssh2_channel_send_eof.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_send_eof 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_send_eof - send EOF to remote server
diff --git a/docs/libssh2_channel_set_blocking.3 b/docs/libssh2_channel_set_blocking.3
--- a/docs/libssh2_channel_set_blocking.3
+++ b/docs/libssh2_channel_set_blocking.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_set_blocking 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_set_blocking - set or clear blocking mode on channel
diff --git a/docs/libssh2_channel_setenv.3 b/docs/libssh2_channel_setenv.3
--- a/docs/libssh2_channel_setenv.3
+++ b/docs/libssh2_channel_setenv.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_setenv 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_channel_setenv - convenience macro for \fIlibssh2_channel_setenv_ex(3)\fP calls
diff --git a/docs/libssh2_channel_setenv_ex.3 b/docs/libssh2_channel_setenv_ex.3
--- a/docs/libssh2_channel_setenv_ex.3
+++ b/docs/libssh2_channel_setenv_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_setenv_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_setenv_ex - set an environment variable on the channel
diff --git a/docs/libssh2_channel_shell.3 b/docs/libssh2_channel_shell.3
--- a/docs/libssh2_channel_shell.3
+++ b/docs/libssh2_channel_shell.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_shell 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_channel_shell - convenience macro for \fIlibssh2_channel_process_startup(3)\fP calls
diff --git a/docs/libssh2_channel_signal_ex.3 b/docs/libssh2_channel_signal_ex.3
--- a/docs/libssh2_channel_signal_ex.3
+++ b/docs/libssh2_channel_signal_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_signal_ex 3 "20 Apr 2023" "libssh2 1.11.0" "libssh2"
 .SH NAME
 libssh2_channel_signal_ex -- Send a signal to process previously opened on channel.
diff --git a/docs/libssh2_channel_subsystem.3 b/docs/libssh2_channel_subsystem.3
--- a/docs/libssh2_channel_subsystem.3
+++ b/docs/libssh2_channel_subsystem.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_subsystem 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_channel_subsystem - convenience macro for \fIlibssh2_channel_process_startup(3)\fP calls
diff --git a/docs/libssh2_channel_wait_closed.3 b/docs/libssh2_channel_wait_closed.3
--- a/docs/libssh2_channel_wait_closed.3
+++ b/docs/libssh2_channel_wait_closed.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_wait_closed 3 "29 Nov 2007" "libssh2 0.19" "libssh2"
 .SH NAME
 libssh2_channel_wait_closed - wait for the remote to close the channel
diff --git a/docs/libssh2_channel_wait_eof.3 b/docs/libssh2_channel_wait_eof.3
--- a/docs/libssh2_channel_wait_eof.3
+++ b/docs/libssh2_channel_wait_eof.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_wait_eof 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_wait_eof - wait for the remote to reply to an EOF request
diff --git a/docs/libssh2_channel_window_read.3 b/docs/libssh2_channel_window_read.3
--- a/docs/libssh2_channel_window_read.3
+++ b/docs/libssh2_channel_window_read.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_window_read 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_channel_window_read - convenience macro for \fIlibssh2_channel_window_read_ex(3)\fP calls
diff --git a/docs/libssh2_channel_window_read_ex.3 b/docs/libssh2_channel_window_read_ex.3
--- a/docs/libssh2_channel_window_read_ex.3
+++ b/docs/libssh2_channel_window_read_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_window_read_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_window_read_ex - Check the status of the read window
diff --git a/docs/libssh2_channel_window_write.3 b/docs/libssh2_channel_window_write.3
--- a/docs/libssh2_channel_window_write.3
+++ b/docs/libssh2_channel_window_write.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_window_write 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_channel_window_write - convenience macro for \fIlibssh2_channel_window_write_ex(3)\fP calls
diff --git a/docs/libssh2_channel_window_write_ex.3 b/docs/libssh2_channel_window_write_ex.3
--- a/docs/libssh2_channel_window_write_ex.3
+++ b/docs/libssh2_channel_window_write_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_window_write_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_window_write_ex - Check the status of the write window
diff --git a/docs/libssh2_channel_write.3 b/docs/libssh2_channel_write.3
--- a/docs/libssh2_channel_write.3
+++ b/docs/libssh2_channel_write.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_write 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_channel_write - convenience macro for \fIlibssh2_channel_write_ex(3)\fP
diff --git a/docs/libssh2_channel_write_ex.3 b/docs/libssh2_channel_write_ex.3
--- a/docs/libssh2_channel_write_ex.3
+++ b/docs/libssh2_channel_write_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_write_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_write_ex - write data to a channel stream blocking
diff --git a/docs/libssh2_channel_write_stderr.3 b/docs/libssh2_channel_write_stderr.3
--- a/docs/libssh2_channel_write_stderr.3
+++ b/docs/libssh2_channel_write_stderr.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_write_stderr 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_channel_write_stderr - convenience macro for \fIlibssh2_channel_write_ex(3)\fP
diff --git a/docs/libssh2_channel_x11_req.3 b/docs/libssh2_channel_x11_req.3
--- a/docs/libssh2_channel_x11_req.3
+++ b/docs/libssh2_channel_x11_req.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_x11_req 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_channel_x11_req - convenience macro for \fIlibssh2_channel_x11_req_ex(3)\fP calls
diff --git a/docs/libssh2_channel_x11_req_ex.3 b/docs/libssh2_channel_x11_req_ex.3
--- a/docs/libssh2_channel_x11_req_ex.3
+++ b/docs/libssh2_channel_x11_req_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_channel_x11_req_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_channel_x11_req_ex - request an X11 forwarding channel
diff --git a/docs/libssh2_crypto_engine.3 b/docs/libssh2_crypto_engine.3
--- a/docs/libssh2_crypto_engine.3
+++ b/docs/libssh2_crypto_engine.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_crypto_engine 3 "22 Nov 2021" "libssh2" "libssh2"
 .SH NAME
 libssh2_crypto_engine - retrieve used crypto engine
diff --git a/docs/libssh2_exit.3 b/docs/libssh2_exit.3
--- a/docs/libssh2_exit.3
+++ b/docs/libssh2_exit.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_exit 3 "19 Mar 2010" "libssh2" "libssh2"
 .SH NAME
 libssh2_exit - global library deinitialization
diff --git a/docs/libssh2_free.3 b/docs/libssh2_free.3
--- a/docs/libssh2_free.3
+++ b/docs/libssh2_free.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_free 3 "13 Oct 2010" "libssh2" "libssh2"
 .SH NAME
 libssh2_free - deallocate libssh2 memory
diff --git a/docs/libssh2_hostkey_hash.3 b/docs/libssh2_hostkey_hash.3
--- a/docs/libssh2_hostkey_hash.3
+++ b/docs/libssh2_hostkey_hash.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_hostkey_hash 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_hostkey_hash - return a hash of the remote host's key
diff --git a/docs/libssh2_init.3 b/docs/libssh2_init.3
--- a/docs/libssh2_init.3
+++ b/docs/libssh2_init.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_init 3 "19 Mar 2010" "libssh2" "libssh2"
 .SH NAME
 libssh2_init - global library initialization
diff --git a/docs/libssh2_keepalive_config.3 b/docs/libssh2_keepalive_config.3
--- a/docs/libssh2_keepalive_config.3
+++ b/docs/libssh2_keepalive_config.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_keepalive_config 3 "12 Apr 2011" "libssh2" "libssh2"
 .SH NAME
 libssh2_keepalive_config - short function description
diff --git a/docs/libssh2_keepalive_send.3 b/docs/libssh2_keepalive_send.3
--- a/docs/libssh2_keepalive_send.3
+++ b/docs/libssh2_keepalive_send.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_keepalive_send 3 "13 Apr 2011" "libssh2" "libssh2"
 .SH NAME
 libssh2_keepalive_send - short function description
diff --git a/docs/libssh2_knownhost_add.3 b/docs/libssh2_knownhost_add.3
--- a/docs/libssh2_knownhost_add.3
+++ b/docs/libssh2_knownhost_add.3
@@ -1,6 +1,5 @@
-.\"
 .\" Copyright (C) Daniel Stenberg
-.\"
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_knownhost_add 3 "28 May 2009" "libssh2" "libssh2"
 .SH NAME
 libssh2_knownhost_add - add a known host
diff --git a/docs/libssh2_knownhost_addc.3 b/docs/libssh2_knownhost_addc.3
--- a/docs/libssh2_knownhost_addc.3
+++ b/docs/libssh2_knownhost_addc.3
@@ -1,6 +1,5 @@
-.\"
 .\" Copyright (C) Daniel Stenberg
-.\"
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_knownhost_addc 3 "28 May 2009" "libssh2 1.2" "libssh2"
 .SH NAME
 libssh2_knownhost_addc - add a known host
diff --git a/docs/libssh2_knownhost_check.3 b/docs/libssh2_knownhost_check.3
--- a/docs/libssh2_knownhost_check.3
+++ b/docs/libssh2_knownhost_check.3
@@ -1,6 +1,5 @@
-.\"
 .\" Copyright (C) Daniel Stenberg
-.\"
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_knownhost_check 3 "28 May 2009" "libssh2" "libssh2"
 .SH NAME
 libssh2_knownhost_check - check a host+key against the list of known hosts
diff --git a/docs/libssh2_knownhost_checkp.3 b/docs/libssh2_knownhost_checkp.3
--- a/docs/libssh2_knownhost_checkp.3
+++ b/docs/libssh2_knownhost_checkp.3
@@ -1,6 +1,5 @@
-.\"
 .\" Copyright (C) Daniel Stenberg
-.\"
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_knownhost_checkp 3 "1 May 2010" "libssh2" "libssh2"
 .SH NAME
 libssh2_knownhost_checkp - check a host+key against the list of known hosts
diff --git a/docs/libssh2_knownhost_del.3 b/docs/libssh2_knownhost_del.3
--- a/docs/libssh2_knownhost_del.3
+++ b/docs/libssh2_knownhost_del.3
@@ -1,6 +1,5 @@
-.\"
 .\" Copyright (C) Daniel Stenberg
-.\"
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_knownhost_del 3 "28 May 2009" "libssh2" "libssh2"
 .SH NAME
 libssh2_knownhost_del - delete a known host entry
diff --git a/docs/libssh2_knownhost_free.3 b/docs/libssh2_knownhost_free.3
--- a/docs/libssh2_knownhost_free.3
+++ b/docs/libssh2_knownhost_free.3
@@ -1,6 +1,5 @@
-.\"
 .\" Copyright (C) Daniel Stenberg
-.\"
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_knownhost_free 3 "28 May 2009" "libssh2" "libssh2"
 .SH NAME
 libssh2_knownhost_free - free a collection of known hosts
diff --git a/docs/libssh2_knownhost_get.3 b/docs/libssh2_knownhost_get.3
--- a/docs/libssh2_knownhost_get.3
+++ b/docs/libssh2_knownhost_get.3
@@ -1,6 +1,5 @@
-.\"
 .\" Copyright (C) Daniel Stenberg
-.\"
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_knownhost_get 3 "28 May 2009" "libssh2" "libssh2"
 .SH NAME
 libssh2_knownhost_get - get a known host off the collection of known hosts
diff --git a/docs/libssh2_knownhost_init.3 b/docs/libssh2_knownhost_init.3
--- a/docs/libssh2_knownhost_init.3
+++ b/docs/libssh2_knownhost_init.3
@@ -1,6 +1,5 @@
-.\"
 .\" Copyright (C) Daniel Stenberg
-.\"
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_knownhost_init 3 "28 May 2009" "libssh2" "libssh2"
 .SH NAME
 libssh2_knownhost_init - init a collection of known hosts
diff --git a/docs/libssh2_knownhost_readfile.3 b/docs/libssh2_knownhost_readfile.3
--- a/docs/libssh2_knownhost_readfile.3
+++ b/docs/libssh2_knownhost_readfile.3
@@ -1,6 +1,5 @@
-.\"
 .\" Copyright (C) Daniel Stenberg
-.\"
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_knownhost_readfile 3 "28 May 2009" "libssh2" "libssh2"
 .SH NAME
 libssh2_knownhost_readfile - parse a file of known hosts
diff --git a/docs/libssh2_knownhost_readline.3 b/docs/libssh2_knownhost_readline.3
--- a/docs/libssh2_knownhost_readline.3
+++ b/docs/libssh2_knownhost_readline.3
@@ -1,6 +1,5 @@
-.\"
 .\" Copyright (C) Daniel Stenberg
-.\"
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_knownhost_readline 3 "28 May 2009" "libssh2" "libssh2"
 .SH NAME
 libssh2_knownhost_readline - read a known host line
diff --git a/docs/libssh2_knownhost_writefile.3 b/docs/libssh2_knownhost_writefile.3
--- a/docs/libssh2_knownhost_writefile.3
+++ b/docs/libssh2_knownhost_writefile.3
@@ -1,6 +1,5 @@
-.\"
 .\" Copyright (C) Daniel Stenberg
-.\"
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_knownhost_writefile 3 "28 May 2009" "libssh2" "libssh2"
 .SH NAME
 libssh2_knownhost_writefile - write a collection of known hosts to a file
diff --git a/docs/libssh2_knownhost_writeline.3 b/docs/libssh2_knownhost_writeline.3
--- a/docs/libssh2_knownhost_writeline.3
+++ b/docs/libssh2_knownhost_writeline.3
@@ -1,6 +1,5 @@
-.\"
 .\" Copyright (C) Daniel Stenberg
-.\"
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_knownhost_writeline 3 "28 May 2009" "libssh2" "libssh2"
 .SH NAME
 libssh2_knownhost_writeline - convert a known host to a line for storage
diff --git a/docs/libssh2_poll.3 b/docs/libssh2_poll.3
--- a/docs/libssh2_poll.3
+++ b/docs/libssh2_poll.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_poll 3 "14 Dec 2006" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_poll - poll for activity on a socket, channel or listener
diff --git a/docs/libssh2_poll_channel_read.3 b/docs/libssh2_poll_channel_read.3
--- a/docs/libssh2_poll_channel_read.3
+++ b/docs/libssh2_poll_channel_read.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_poll_channel_read 3 "14 Dec 2006" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_poll_channel_read - check if data is available
diff --git a/docs/libssh2_publickey_add.3 b/docs/libssh2_publickey_add.3
--- a/docs/libssh2_publickey_add.3
+++ b/docs/libssh2_publickey_add.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_publickey_add 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_publickey_add - convenience macro for \fIlibssh2_publickey_add_ex(3)\fP calls
diff --git a/docs/libssh2_publickey_add_ex.3 b/docs/libssh2_publickey_add_ex.3
--- a/docs/libssh2_publickey_add_ex.3
+++ b/docs/libssh2_publickey_add_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_publickey_add_ex 3 "1 Jun 2007" "libssh2" "libssh2"
 .SH NAME
 libssh2_publickey_add_ex - Add a public key entry
diff --git a/docs/libssh2_publickey_init.3 b/docs/libssh2_publickey_init.3
--- a/docs/libssh2_publickey_init.3
+++ b/docs/libssh2_publickey_init.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_publickey_init 3 "1 Jun 2007" "libssh2" "libssh2"
 .SH NAME
 libssh2_publickey_init - TODO
diff --git a/docs/libssh2_publickey_list_fetch.3 b/docs/libssh2_publickey_list_fetch.3
--- a/docs/libssh2_publickey_list_fetch.3
+++ b/docs/libssh2_publickey_list_fetch.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_publickey_list_fetch 3 "1 Jun 2007" "libssh2" "libssh2"
 .SH NAME
 libssh2_publickey_list_fetch - TODO
diff --git a/docs/libssh2_publickey_list_free.3 b/docs/libssh2_publickey_list_free.3
--- a/docs/libssh2_publickey_list_free.3
+++ b/docs/libssh2_publickey_list_free.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_publickey_list_free 3 "1 Jun 2007" "libssh2" "libssh2"
 .SH NAME
 libssh2_publickey_list_free - TODO
diff --git a/docs/libssh2_publickey_remove.3 b/docs/libssh2_publickey_remove.3
--- a/docs/libssh2_publickey_remove.3
+++ b/docs/libssh2_publickey_remove.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_publickey_remove 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_publickey_remove - convenience macro for \fIlibssh2_publickey_remove_ex(3)\fP calls
diff --git a/docs/libssh2_publickey_remove_ex.3 b/docs/libssh2_publickey_remove_ex.3
--- a/docs/libssh2_publickey_remove_ex.3
+++ b/docs/libssh2_publickey_remove_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_publickey_list_remove_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_publickey_list_remove_ex - TODO
diff --git a/docs/libssh2_publickey_shutdown.3 b/docs/libssh2_publickey_shutdown.3
--- a/docs/libssh2_publickey_shutdown.3
+++ b/docs/libssh2_publickey_shutdown.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_publickey_shutdown 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_publickey_shutdown - TODO
diff --git a/docs/libssh2_scp_recv.3 b/docs/libssh2_scp_recv.3
--- a/docs/libssh2_scp_recv.3
+++ b/docs/libssh2_scp_recv.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_scp_recv 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_scp_recv - request a remote file via SCP
diff --git a/docs/libssh2_scp_recv2.3 b/docs/libssh2_scp_recv2.3
--- a/docs/libssh2_scp_recv2.3
+++ b/docs/libssh2_scp_recv2.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_scp_recv2 3 "29 Jun 2015" "libssh2 1.6.1" "libssh2"
 .SH NAME
 libssh2_scp_recv2 - request a remote file via SCP
diff --git a/docs/libssh2_scp_send.3 b/docs/libssh2_scp_send.3
--- a/docs/libssh2_scp_send.3
+++ b/docs/libssh2_scp_send.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_scp_send 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_scp_send - convenience macro for \fIlibssh2_scp_send_ex(3)\fP calls
diff --git a/docs/libssh2_scp_send64.3 b/docs/libssh2_scp_send64.3
--- a/docs/libssh2_scp_send64.3
+++ b/docs/libssh2_scp_send64.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_scp_send64 3 "17 Apr 2010" "libssh2 1.2.6" "libssh2"
 .SH NAME
 libssh2_scp_send64 - Send a file via SCP
diff --git a/docs/libssh2_scp_send_ex.3 b/docs/libssh2_scp_send_ex.3
--- a/docs/libssh2_scp_send_ex.3
+++ b/docs/libssh2_scp_send_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_scp_send_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_scp_send_ex - Send a file via SCP
diff --git a/docs/libssh2_session_abstract.3 b/docs/libssh2_session_abstract.3
--- a/docs/libssh2_session_abstract.3
+++ b/docs/libssh2_session_abstract.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_abstract 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_session_abstract - return a pointer to a session's abstract pointer
diff --git a/docs/libssh2_session_banner_get.3 b/docs/libssh2_session_banner_get.3
--- a/docs/libssh2_session_banner_get.3
+++ b/docs/libssh2_session_banner_get.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_banner_get 3 "9 Sep 2011" "libssh2" "libssh2"
 .SH NAME
 libssh2_session_banner_get - get the remote banner
diff --git a/docs/libssh2_session_banner_set.3 b/docs/libssh2_session_banner_set.3
--- a/docs/libssh2_session_banner_set.3
+++ b/docs/libssh2_session_banner_set.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_banner_set 3 "9 Sep 2011" "libssh2" "libssh2"
 .SH NAME
 libssh2_session_banner_set - set the SSH protocol banner for the local client
diff --git a/docs/libssh2_session_block_directions.3 b/docs/libssh2_session_block_directions.3
--- a/docs/libssh2_session_block_directions.3
+++ b/docs/libssh2_session_block_directions.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_block_directions 3 "1 Oct 2008" "libssh2" "libssh2"
 .SH NAME
 libssh2_session_block_directions - get directions to wait for
diff --git a/docs/libssh2_session_callback_set.3 b/docs/libssh2_session_callback_set.3
--- a/docs/libssh2_session_callback_set.3
+++ b/docs/libssh2_session_callback_set.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_callback_set 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_session_callback_set - set a callback function
diff --git a/docs/libssh2_session_disconnect.3 b/docs/libssh2_session_disconnect.3
--- a/docs/libssh2_session_disconnect.3
+++ b/docs/libssh2_session_disconnect.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_disconnect 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_session_disconnect - convenience macro for \fIlibssh2_session_disconnect_ex(3)\fP calls
diff --git a/docs/libssh2_session_disconnect_ex.3 b/docs/libssh2_session_disconnect_ex.3
--- a/docs/libssh2_session_disconnect_ex.3
+++ b/docs/libssh2_session_disconnect_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_disconnect_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_session_disconnect_ex - terminate transport layer
diff --git a/docs/libssh2_session_flag.3 b/docs/libssh2_session_flag.3
--- a/docs/libssh2_session_flag.3
+++ b/docs/libssh2_session_flag.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_flag 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_session_flag - TODO
diff --git a/docs/libssh2_session_free.3 b/docs/libssh2_session_free.3
--- a/docs/libssh2_session_free.3
+++ b/docs/libssh2_session_free.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_free 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_session_free - frees resources associated with a session instance
diff --git a/docs/libssh2_session_get_blocking.3 b/docs/libssh2_session_get_blocking.3
--- a/docs/libssh2_session_get_blocking.3
+++ b/docs/libssh2_session_get_blocking.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_get_blocking 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_session_get_blocking - TODO
diff --git a/docs/libssh2_session_get_read_timeout.3 b/docs/libssh2_session_get_read_timeout.3
--- a/docs/libssh2_session_get_read_timeout.3
+++ b/docs/libssh2_session_get_read_timeout.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_get_read_timeout 3 "13 Jan 2023" "libssh2" "libssh2"
 .SH NAME
 libssh2_session_get_read_timeout - get the timeout for packet read functions
diff --git a/docs/libssh2_session_get_timeout.3 b/docs/libssh2_session_get_timeout.3
--- a/docs/libssh2_session_get_timeout.3
+++ b/docs/libssh2_session_get_timeout.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_get_timeout 3 "4 May 2011" "libssh2" "libssh2"
 .SH NAME
 libssh2_session_get_timeout - get the timeout for blocking functions
diff --git a/docs/libssh2_session_handshake.3 b/docs/libssh2_session_handshake.3
--- a/docs/libssh2_session_handshake.3
+++ b/docs/libssh2_session_handshake.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_handshake 3 "7 Oct 2010" "libssh2" "libssh2"
 .SH NAME
 libssh2_session_handshake - perform the SSH handshake
diff --git a/docs/libssh2_session_hostkey.3 b/docs/libssh2_session_hostkey.3
--- a/docs/libssh2_session_hostkey.3
+++ b/docs/libssh2_session_hostkey.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_hostkey 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_session_hostkey - get the remote key
diff --git a/docs/libssh2_session_init.3 b/docs/libssh2_session_init.3
--- a/docs/libssh2_session_init.3
+++ b/docs/libssh2_session_init.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_init 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_session_init - convenience macro for \fIlibssh2_session_init_ex(3)\fP calls
diff --git a/docs/libssh2_session_init_ex.3 b/docs/libssh2_session_init_ex.3
--- a/docs/libssh2_session_init_ex.3
+++ b/docs/libssh2_session_init_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_init_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_session_init_ex - initializes an SSH session object
diff --git a/docs/libssh2_session_last_errno.3 b/docs/libssh2_session_last_errno.3
--- a/docs/libssh2_session_last_errno.3
+++ b/docs/libssh2_session_last_errno.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_last_errno 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_session_last_errno - get the most recent error number
diff --git a/docs/libssh2_session_last_error.3 b/docs/libssh2_session_last_error.3
--- a/docs/libssh2_session_last_error.3
+++ b/docs/libssh2_session_last_error.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_last_error 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_session_last_error - get the most recent error
diff --git a/docs/libssh2_session_method_pref.3 b/docs/libssh2_session_method_pref.3
--- a/docs/libssh2_session_method_pref.3
+++ b/docs/libssh2_session_method_pref.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_method_pref 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_session_method_pref - set preferred key exchange method
diff --git a/docs/libssh2_session_methods.3 b/docs/libssh2_session_methods.3
--- a/docs/libssh2_session_methods.3
+++ b/docs/libssh2_session_methods.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_methods 3 "8 Nov 2021" "libssh2 1.11" "libssh2"
 .SH NAME
 libssh2_session_methods - return the currently active algorithms
diff --git a/docs/libssh2_session_set_blocking.3 b/docs/libssh2_session_set_blocking.3
--- a/docs/libssh2_session_set_blocking.3
+++ b/docs/libssh2_session_set_blocking.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_set_blocking 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_session_set_blocking - set or clear blocking mode on session
diff --git a/docs/libssh2_session_set_last_error.3 b/docs/libssh2_session_set_last_error.3
--- a/docs/libssh2_session_set_last_error.3
+++ b/docs/libssh2_session_set_last_error.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_set_last_error 3 "26 Oct 2015" "libssh2" "libssh2"
 .SH NAME
 libssh2_session_set_last_error - sets the internal error state
diff --git a/docs/libssh2_session_set_read_timeout.3 b/docs/libssh2_session_set_read_timeout.3
--- a/docs/libssh2_session_set_read_timeout.3
+++ b/docs/libssh2_session_set_read_timeout.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_set_read_timeout 3 "13 Jan 2023" "libssh2" "libssh2"
 .SH NAME
 libssh2_session_set_read_timeout - set timeout for packet read functions
diff --git a/docs/libssh2_session_set_timeout.3 b/docs/libssh2_session_set_timeout.3
--- a/docs/libssh2_session_set_timeout.3
+++ b/docs/libssh2_session_set_timeout.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_set_timeout 3 "4 May 2011" "libssh2" "libssh2"
 .SH NAME
 libssh2_session_set_timeout - set timeout for blocking functions
diff --git a/docs/libssh2_session_startup.3 b/docs/libssh2_session_startup.3
--- a/docs/libssh2_session_startup.3
+++ b/docs/libssh2_session_startup.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_startup 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_session_startup - begin transport layer
diff --git a/docs/libssh2_session_supported_algs.3 b/docs/libssh2_session_supported_algs.3
--- a/docs/libssh2_session_supported_algs.3
+++ b/docs/libssh2_session_supported_algs.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_session_supported_algs 3 "23 Oct 2011" "libssh2" "libssh2"
 .SH NAME
 libssh2_session_supported_algs - get list of supported algorithms
diff --git a/docs/libssh2_sftp_close.3 b/docs/libssh2_sftp_close.3
--- a/docs/libssh2_sftp_close.3
+++ b/docs/libssh2_sftp_close.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_close 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_sftp_close - convenience macro for \fIlibssh2_sftp_close_handle(3)\fP calls
diff --git a/docs/libssh2_sftp_close_handle.3 b/docs/libssh2_sftp_close_handle.3
--- a/docs/libssh2_sftp_close_handle.3
+++ b/docs/libssh2_sftp_close_handle.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_close_handle 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_sftp_close_handle - close filehandle
diff --git a/docs/libssh2_sftp_closedir.3 b/docs/libssh2_sftp_closedir.3
--- a/docs/libssh2_sftp_closedir.3
+++ b/docs/libssh2_sftp_closedir.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_closedir 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_sftp_closedir - convenience macro for \fIlibssh2_sftp_close_handle(3)\fP calls
diff --git a/docs/libssh2_sftp_fsetstat.3 b/docs/libssh2_sftp_fsetstat.3
--- a/docs/libssh2_sftp_fsetstat.3
+++ b/docs/libssh2_sftp_fsetstat.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_fsetstat 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_sftp_fsetstat - convenience macro for \fIlibssh2_sftp_fstat_ex(3)\fP calls
diff --git a/docs/libssh2_sftp_fstat.3 b/docs/libssh2_sftp_fstat.3
--- a/docs/libssh2_sftp_fstat.3
+++ b/docs/libssh2_sftp_fstat.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_fstat 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_sftp_fstat - convenience macro for \fIlibssh2_sftp_fstat_ex(3)\fP calls
diff --git a/docs/libssh2_sftp_fstat_ex.3 b/docs/libssh2_sftp_fstat_ex.3
--- a/docs/libssh2_sftp_fstat_ex.3
+++ b/docs/libssh2_sftp_fstat_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_fstat_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_sftp_fstat_ex - get or set attributes on an SFTP file handle
diff --git a/docs/libssh2_sftp_fstatvfs.3 b/docs/libssh2_sftp_fstatvfs.3
--- a/docs/libssh2_sftp_fstatvfs.3
+++ b/docs/libssh2_sftp_fstatvfs.3
@@ -1 +1,3 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .so man3/libssh2_sftp_statvfs.3
diff --git a/docs/libssh2_sftp_fsync.3 b/docs/libssh2_sftp_fsync.3
--- a/docs/libssh2_sftp_fsync.3
+++ b/docs/libssh2_sftp_fsync.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_fsync 3 "8 Apr 2013" "libssh2" "libssh2"
 .SH NAME
 libssh2_sftp_fsync - synchronize file to disk
diff --git a/docs/libssh2_sftp_get_channel.3 b/docs/libssh2_sftp_get_channel.3
--- a/docs/libssh2_sftp_get_channel.3
+++ b/docs/libssh2_sftp_get_channel.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_get_channel 3 "9 Sep 2011" "libssh2 1.4.0" "libssh2"
 .SH NAME
 libssh2_sftp_get_channel - return the channel of sftp
diff --git a/docs/libssh2_sftp_init.3 b/docs/libssh2_sftp_init.3
--- a/docs/libssh2_sftp_init.3
+++ b/docs/libssh2_sftp_init.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_init 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_sftp_init - open SFTP channel for the given SSH session.
diff --git a/docs/libssh2_sftp_last_error.3 b/docs/libssh2_sftp_last_error.3
--- a/docs/libssh2_sftp_last_error.3
+++ b/docs/libssh2_sftp_last_error.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_last_error 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_sftp_last_error - return the last SFTP-specific error code
diff --git a/docs/libssh2_sftp_lstat.3 b/docs/libssh2_sftp_lstat.3
--- a/docs/libssh2_sftp_lstat.3
+++ b/docs/libssh2_sftp_lstat.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_lstat 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_sftp_lstat - convenience macro for \fIlibssh2_sftp_stat_ex(3)\fP calls
diff --git a/docs/libssh2_sftp_mkdir.3 b/docs/libssh2_sftp_mkdir.3
--- a/docs/libssh2_sftp_mkdir.3
+++ b/docs/libssh2_sftp_mkdir.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_mkdir 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_sftp_mkdir - convenience macro for \fIlibssh2_sftp_mkdir_ex(3)\fP calls
diff --git a/docs/libssh2_sftp_mkdir_ex.3 b/docs/libssh2_sftp_mkdir_ex.3
--- a/docs/libssh2_sftp_mkdir_ex.3
+++ b/docs/libssh2_sftp_mkdir_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_mkdir_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_sftp_mkdir_ex - create a directory on the remote file system
diff --git a/docs/libssh2_sftp_open.3 b/docs/libssh2_sftp_open.3
--- a/docs/libssh2_sftp_open.3
+++ b/docs/libssh2_sftp_open.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_open 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_sftp_open - convenience macro for \fIlibssh2_sftp_open_ex(3)\fP calls
diff --git a/docs/libssh2_sftp_open_ex.3 b/docs/libssh2_sftp_open_ex.3
--- a/docs/libssh2_sftp_open_ex.3
+++ b/docs/libssh2_sftp_open_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_open_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_sftp_open_ex - open filehandle for file on SFTP.
diff --git a/docs/libssh2_sftp_open_ex_r.3 b/docs/libssh2_sftp_open_ex_r.3
--- a/docs/libssh2_sftp_open_ex_r.3
+++ b/docs/libssh2_sftp_open_ex_r.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_open_ex_r 3 "10 Apr 2023" "libssh2" "libssh2"
 .SH NAME
 libssh2_sftp_open_ex_r - open filehandle for file on SFTP.
diff --git a/docs/libssh2_sftp_open_r.3 b/docs/libssh2_sftp_open_r.3
--- a/docs/libssh2_sftp_open_r.3
+++ b/docs/libssh2_sftp_open_r.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_open_r 3 "10 Apr 2023" "libssh2 1.11.0" "libssh2"
 .SH NAME
 libssh2_sftp_open_r - convenience macro for \fIlibssh2_sftp_open_ex_r(3)\fP calls
diff --git a/docs/libssh2_sftp_opendir.3 b/docs/libssh2_sftp_opendir.3
--- a/docs/libssh2_sftp_opendir.3
+++ b/docs/libssh2_sftp_opendir.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_opendir 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_sftp_opendir - convenience macro for \fIlibssh2_sftp_open_ex(3)\fP calls
diff --git a/docs/libssh2_sftp_read.3 b/docs/libssh2_sftp_read.3
--- a/docs/libssh2_sftp_read.3
+++ b/docs/libssh2_sftp_read.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_read 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_sftp_read - read data from an SFTP handle
diff --git a/docs/libssh2_sftp_readdir.3 b/docs/libssh2_sftp_readdir.3
--- a/docs/libssh2_sftp_readdir.3
+++ b/docs/libssh2_sftp_readdir.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_readdir 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_sftp_readdir - convenience macro for \fIlibssh2_sftp_readdir_ex(3)\fP calls
diff --git a/docs/libssh2_sftp_readdir_ex.3 b/docs/libssh2_sftp_readdir_ex.3
--- a/docs/libssh2_sftp_readdir_ex.3
+++ b/docs/libssh2_sftp_readdir_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_readdir_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_sftp_readdir_ex - read directory data from an SFTP handle
diff --git a/docs/libssh2_sftp_readlink.3 b/docs/libssh2_sftp_readlink.3
--- a/docs/libssh2_sftp_readlink.3
+++ b/docs/libssh2_sftp_readlink.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_readlink 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_sftp_readlink - convenience macro for \fIlibssh2_sftp_symlink_ex(3)\fP
diff --git a/docs/libssh2_sftp_realpath.3 b/docs/libssh2_sftp_realpath.3
--- a/docs/libssh2_sftp_realpath.3
+++ b/docs/libssh2_sftp_realpath.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_realpath 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_sftp_realpath - convenience macro for \fIlibssh2_sftp_symlink_ex(3)\fP
diff --git a/docs/libssh2_sftp_rename.3 b/docs/libssh2_sftp_rename.3
--- a/docs/libssh2_sftp_rename.3
+++ b/docs/libssh2_sftp_rename.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_rename 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_sftp_rename - convenience macro for \fIlibssh2_sftp_rename_ex(3)\fP calls
diff --git a/docs/libssh2_sftp_rename_ex.3 b/docs/libssh2_sftp_rename_ex.3
--- a/docs/libssh2_sftp_rename_ex.3
+++ b/docs/libssh2_sftp_rename_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_rename_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_sftp_rename_ex - rename an SFTP file
diff --git a/docs/libssh2_sftp_rewind.3 b/docs/libssh2_sftp_rewind.3
--- a/docs/libssh2_sftp_rewind.3
+++ b/docs/libssh2_sftp_rewind.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_rewind 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_sftp_rewind - convenience macro for \fIlibssh2_sftp_seek64(3)\fP calls
diff --git a/docs/libssh2_sftp_rmdir.3 b/docs/libssh2_sftp_rmdir.3
--- a/docs/libssh2_sftp_rmdir.3
+++ b/docs/libssh2_sftp_rmdir.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_rmdir 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_sftp_rmdir - convenience macro for \fIlibssh2_sftp_rmdir_ex(3)\fP
diff --git a/docs/libssh2_sftp_rmdir_ex.3 b/docs/libssh2_sftp_rmdir_ex.3
--- a/docs/libssh2_sftp_rmdir_ex.3
+++ b/docs/libssh2_sftp_rmdir_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_rmdir_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_sftp_rmdir_ex - remove an SFTP directory
diff --git a/docs/libssh2_sftp_seek.3 b/docs/libssh2_sftp_seek.3
--- a/docs/libssh2_sftp_seek.3
+++ b/docs/libssh2_sftp_seek.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_seek 3 "22 Dec 2008" "libssh2 1.0" "libssh2"
 .SH NAME
 libssh2_sftp_seek - set the read/write position indicator within a file
diff --git a/docs/libssh2_sftp_seek64.3 b/docs/libssh2_sftp_seek64.3
--- a/docs/libssh2_sftp_seek64.3
+++ b/docs/libssh2_sftp_seek64.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_seek64 3 "22 Dec 2008" "libssh2" "libssh2"
 .SH NAME
 libssh2_sftp_seek64 - set the read/write position within a file
diff --git a/docs/libssh2_sftp_setstat.3 b/docs/libssh2_sftp_setstat.3
--- a/docs/libssh2_sftp_setstat.3
+++ b/docs/libssh2_sftp_setstat.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_setstat 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_sftp_setstat - convenience macro for \fIlibssh2_sftp_stat_ex(3)\fP calls
diff --git a/docs/libssh2_sftp_shutdown.3 b/docs/libssh2_sftp_shutdown.3
--- a/docs/libssh2_sftp_shutdown.3
+++ b/docs/libssh2_sftp_shutdown.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_shutdown 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_sftp_shutdown - shut down an SFTP session
diff --git a/docs/libssh2_sftp_stat.3 b/docs/libssh2_sftp_stat.3
--- a/docs/libssh2_sftp_stat.3
+++ b/docs/libssh2_sftp_stat.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_stat 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_sftp_stat - convenience macro for \fIlibssh2_sftp_fstat_ex(3)\fP calls
diff --git a/docs/libssh2_sftp_stat_ex.3 b/docs/libssh2_sftp_stat_ex.3
--- a/docs/libssh2_sftp_stat_ex.3
+++ b/docs/libssh2_sftp_stat_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_stat_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_sftp_stat_ex - get status about an SFTP file
diff --git a/docs/libssh2_sftp_statvfs.3 b/docs/libssh2_sftp_statvfs.3
--- a/docs/libssh2_sftp_statvfs.3
+++ b/docs/libssh2_sftp_statvfs.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_statvfs 3 "22 May 2010" "libssh2" "libssh2"
 .SH NAME
 libssh2_sftp_statvfs, libssh2_sftp_fstatvfs - get file system statistics
diff --git a/docs/libssh2_sftp_symlink.3 b/docs/libssh2_sftp_symlink.3
--- a/docs/libssh2_sftp_symlink.3
+++ b/docs/libssh2_sftp_symlink.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_symlink 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_sftp_symlink - convenience macro for \fIlibssh2_sftp_symlink_ex(3)\fP
diff --git a/docs/libssh2_sftp_symlink_ex.3 b/docs/libssh2_sftp_symlink_ex.3
--- a/docs/libssh2_sftp_symlink_ex.3
+++ b/docs/libssh2_sftp_symlink_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_symlink_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_sftp_symlink_ex - read or set a symbolic link
diff --git a/docs/libssh2_sftp_tell.3 b/docs/libssh2_sftp_tell.3
--- a/docs/libssh2_sftp_tell.3
+++ b/docs/libssh2_sftp_tell.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_tell 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_sftp_tell - get the current read/write position indicator for a file
diff --git a/docs/libssh2_sftp_tell64.3 b/docs/libssh2_sftp_tell64.3
--- a/docs/libssh2_sftp_tell64.3
+++ b/docs/libssh2_sftp_tell64.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_tell64 3 "22 Dec 2008" "libssh2 1.0" "libssh2"
 .SH NAME
 libssh2_sftp_tell64 - get the current read/write position indicator for a file
diff --git a/docs/libssh2_sftp_unlink.3 b/docs/libssh2_sftp_unlink.3
--- a/docs/libssh2_sftp_unlink.3
+++ b/docs/libssh2_sftp_unlink.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_unlink 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_sftp_unlink - convenience macro for \fIlibssh2_sftp_unlink_ex(3)\fP calls
diff --git a/docs/libssh2_sftp_unlink_ex.3 b/docs/libssh2_sftp_unlink_ex.3
--- a/docs/libssh2_sftp_unlink_ex.3
+++ b/docs/libssh2_sftp_unlink_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_unlink_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_sftp_unlink_ex - unlink an SFTP file
diff --git a/docs/libssh2_sftp_write.3 b/docs/libssh2_sftp_write.3
--- a/docs/libssh2_sftp_write.3
+++ b/docs/libssh2_sftp_write.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sftp_write 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_sftp_write - write SFTP data
diff --git a/docs/libssh2_sign_sk.3 b/docs/libssh2_sign_sk.3
--- a/docs/libssh2_sign_sk.3
+++ b/docs/libssh2_sign_sk.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_sign_sk 3 "1 Jun 2022" "libssh2 1.10.0" "libssh2"
 .SH NAME
 libssh2_sign_sk - Create a signature from a FIDO2 authenticator.
diff --git a/docs/libssh2_trace.3 b/docs/libssh2_trace.3
--- a/docs/libssh2_trace.3
+++ b/docs/libssh2_trace.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_trace 3 "26 Dec 2008" "libssh2 1.0" "libssh2"
 .SH NAME
 libssh2_trace - enable debug info from inside libssh2
diff --git a/docs/libssh2_trace_sethandler.3 b/docs/libssh2_trace_sethandler.3
--- a/docs/libssh2_trace_sethandler.3
+++ b/docs/libssh2_trace_sethandler.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_trace_sethandler 3 "15 Jan 2010" "libssh2" "libssh2"
 .SH NAME
 libssh2_trace_sethandler - set a trace output handler
diff --git a/docs/libssh2_userauth_authenticated.3 b/docs/libssh2_userauth_authenticated.3
--- a/docs/libssh2_userauth_authenticated.3
+++ b/docs/libssh2_userauth_authenticated.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_userauth_authenticated 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_userauth_authenticated - return authentication status
diff --git a/docs/libssh2_userauth_banner.3 b/docs/libssh2_userauth_banner.3
--- a/docs/libssh2_userauth_banner.3
+++ b/docs/libssh2_userauth_banner.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_userauth_banner 3 "1 Jun 2021" "libssh2 1.9.0" "libssh2"
 .SH NAME
 libssh2_userauth_banner - get the server's userauth banner message
diff --git a/docs/libssh2_userauth_hostbased_fromfile.3 b/docs/libssh2_userauth_hostbased_fromfile.3
--- a/docs/libssh2_userauth_hostbased_fromfile.3
+++ b/docs/libssh2_userauth_hostbased_fromfile.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_userauth_hostbased_fromfile 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_userauth_hostbased_fromfile - convenience macro for \fIlibssh2_userauth_hostbased_fromfile_ex(3)\fP calls
diff --git a/docs/libssh2_userauth_hostbased_fromfile_ex.3 b/docs/libssh2_userauth_hostbased_fromfile_ex.3
--- a/docs/libssh2_userauth_hostbased_fromfile_ex.3
+++ b/docs/libssh2_userauth_hostbased_fromfile_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_userauth_hostbased_fromfile_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_userauth_hostbased_fromfile_ex - TODO
diff --git a/docs/libssh2_userauth_keyboard_interactive.3 b/docs/libssh2_userauth_keyboard_interactive.3
--- a/docs/libssh2_userauth_keyboard_interactive.3
+++ b/docs/libssh2_userauth_keyboard_interactive.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_userauth_keyboard_interactive 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_userauth_keyboard_interactive - convenience macro for \fIlibssh2_userauth_keyboard_interactive_ex(3)\fP calls
diff --git a/docs/libssh2_userauth_keyboard_interactive_ex.3 b/docs/libssh2_userauth_keyboard_interactive_ex.3
--- a/docs/libssh2_userauth_keyboard_interactive_ex.3
+++ b/docs/libssh2_userauth_keyboard_interactive_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_userauth_keyboard_interactive_ex 3 "8 Mar 2008" "libssh2 0.19" "libssh2"
 .SH NAME
 libssh2_userauth_keyboard_interactive_ex - authenticate a session using
diff --git a/docs/libssh2_userauth_list.3 b/docs/libssh2_userauth_list.3
--- a/docs/libssh2_userauth_list.3
+++ b/docs/libssh2_userauth_list.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_userauth_list 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_userauth_list - list supported authentication methods
diff --git a/docs/libssh2_userauth_password.3 b/docs/libssh2_userauth_password.3
--- a/docs/libssh2_userauth_password.3
+++ b/docs/libssh2_userauth_password.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_userauth_password 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_userauth_password - convenience macro for \fIlibssh2_userauth_password_ex(3)\fP calls
diff --git a/docs/libssh2_userauth_password_ex.3 b/docs/libssh2_userauth_password_ex.3
--- a/docs/libssh2_userauth_password_ex.3
+++ b/docs/libssh2_userauth_password_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_userauth_password_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_userauth_password_ex - authenticate a session with username and password
diff --git a/docs/libssh2_userauth_publickey.3 b/docs/libssh2_userauth_publickey.3
--- a/docs/libssh2_userauth_publickey.3
+++ b/docs/libssh2_userauth_publickey.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_userauth_publickey 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_userauth_publickey - authenticate using a callback function
diff --git a/docs/libssh2_userauth_publickey_fromfile.3 b/docs/libssh2_userauth_publickey_fromfile.3
--- a/docs/libssh2_userauth_publickey_fromfile.3
+++ b/docs/libssh2_userauth_publickey_fromfile.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_userauth_publickey_fromfile 3 "20 Feb 2010" "libssh2 1.2.4" "libssh2"
 .SH NAME
 libssh2_userauth_publickey_fromfile - convenience macro for \fIlibssh2_userauth_publickey_fromfile_ex(3)\fP calls
diff --git a/docs/libssh2_userauth_publickey_fromfile_ex.3 b/docs/libssh2_userauth_publickey_fromfile_ex.3
--- a/docs/libssh2_userauth_publickey_fromfile_ex.3
+++ b/docs/libssh2_userauth_publickey_fromfile_ex.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_userauth_publickey_fromfile_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
 .SH NAME
 libssh2_userauth_publickey_fromfile_ex - authenticate a session with a public key, read from a file
diff --git a/docs/libssh2_userauth_publickey_frommemory.3 b/docs/libssh2_userauth_publickey_frommemory.3
--- a/docs/libssh2_userauth_publickey_frommemory.3
+++ b/docs/libssh2_userauth_publickey_frommemory.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_userauth_publickey_frommemory 3 "1 Sep 2014" "libssh2" "libssh2"
 .SH NAME
 libssh2_userauth_publickey_frommemory - authenticate a session with a public key, read from memory
diff --git a/docs/libssh2_userauth_publickey_sk.3 b/docs/libssh2_userauth_publickey_sk.3
--- a/docs/libssh2_userauth_publickey_sk.3
+++ b/docs/libssh2_userauth_publickey_sk.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_userauth_publickey_sk 3 "1 Jun 2022" "libssh2" "libssh2"
 .SH NAME
 libssh2_userauth_publickey_sk - authenticate a session with a FIDO2 authenticator
diff --git a/docs/libssh2_version.3 b/docs/libssh2_version.3
--- a/docs/libssh2_version.3
+++ b/docs/libssh2_version.3
@@ -1,3 +1,5 @@
+.\" Copyright (C) The libssh2 project and its contributors.
+.\" SPDX-License-Identifier: BSD-3-Clause
 .TH libssh2_version 3 "23 Feb 2009" "libssh2" "libssh2"
 .SH NAME
 libssh2_version - return the libssh2 version number
diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt
--- a/example/CMakeLists.txt
+++ b/example/CMakeLists.txt
@@ -33,6 +33,8 @@
 # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
 # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
 # OF SUCH DAMAGE.
+#
+# SPDX-License-Identifier: BSD-3-Clause
 
 include(CopyRuntimeDependencies)
 
diff --git a/example/Makefile.am b/example/Makefile.am
--- a/example/Makefile.am
+++ b/example/Makefile.am
@@ -1,3 +1,5 @@
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
 AUTOMAKE_OPTIONS = foreign nostdinc
 
 EXTRA_DIST = CMakeLists.txt
diff --git a/example/direct_tcpip.c b/example/direct_tcpip.c
--- a/example/direct_tcpip.c
+++ b/example/direct_tcpip.c
@@ -1,4 +1,7 @@
-/* Copyright (C) The libssh2 project and its contributors. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #include "libssh2_setup.h"
 #include <libssh2.h>
diff --git a/example/scp.c b/example/scp.c
--- a/example/scp.c
+++ b/example/scp.c
@@ -1,6 +1,8 @@
 /* Copyright (C) The libssh2 project and its contributors.
  *
  * Sample showing how to do a simple SCP transfer.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_setup.h"
diff --git a/example/scp_nonblock.c b/example/scp_nonblock.c
--- a/example/scp_nonblock.c
+++ b/example/scp_nonblock.c
@@ -6,6 +6,8 @@
  * and path to copy, but you can specify them on the command line like:
  *
  * $ ./scp_nonblock 192.168.0.1 user password /tmp/secrets
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_setup.h"
diff --git a/example/scp_write.c b/example/scp_write.c
--- a/example/scp_write.c
+++ b/example/scp_write.c
@@ -1,6 +1,8 @@
 /* Copyright (C) The libssh2 project and its contributors.
  *
  * Sample showing how to do an SCP upload.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_setup.h"
diff --git a/example/scp_write_nonblock.c b/example/scp_write_nonblock.c
--- a/example/scp_write_nonblock.c
+++ b/example/scp_write_nonblock.c
@@ -1,6 +1,8 @@
 /* Copyright (C) The libssh2 project and its contributors.
  *
  * Sample showing how to do an SCP non-blocking upload transfer.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_setup.h"
diff --git a/example/sftp.c b/example/sftp.c
--- a/example/sftp.c
+++ b/example/sftp.c
@@ -6,6 +6,8 @@
  * and path to copy, but you can specify them on the command line like:
  *
  * $ ./sftp 192.168.0.1 user password /tmp/secrets -p|-i|-k
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_setup.h"
diff --git a/example/sftp_RW_nonblock.c b/example/sftp_RW_nonblock.c
--- a/example/sftp_RW_nonblock.c
+++ b/example/sftp_RW_nonblock.c
@@ -6,6 +6,8 @@
  * upload the file again to a given destination file.
  *
  * Using the SFTP server running on 127.0.0.1
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_setup.h"
diff --git a/example/sftp_append.c b/example/sftp_append.c
--- a/example/sftp_append.c
+++ b/example/sftp_append.c
@@ -6,6 +6,8 @@
  * and path to copy, but you can specify them on the command line like:
  *
  * $ ./sftp_append 192.168.0.1 user password localfile /tmp/remotefile
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_setup.h"
diff --git a/example/sftp_mkdir.c b/example/sftp_mkdir.c
--- a/example/sftp_mkdir.c
+++ b/example/sftp_mkdir.c
@@ -6,6 +6,8 @@
  * and path to copy, but you can specify them on the command line like:
  *
  * $ ./sftp_mkdir 192.168.0.1 user password /tmp/sftp_mkdir
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_setup.h"
diff --git a/example/sftp_mkdir_nonblock.c b/example/sftp_mkdir_nonblock.c
--- a/example/sftp_mkdir_nonblock.c
+++ b/example/sftp_mkdir_nonblock.c
@@ -6,6 +6,8 @@
  * and path to copy, but you can specify them on the command line like:
  *
  * $ ./sftp_mkdir_nonblock 192.168.0.1 user password /tmp/sftp_write_nonblock.c
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_setup.h"
diff --git a/example/sftp_nonblock.c b/example/sftp_nonblock.c
--- a/example/sftp_nonblock.c
+++ b/example/sftp_nonblock.c
@@ -6,6 +6,8 @@
  * and path to copy, but you can specify them on the command line like:
  *
  * $ ./sftp_nonblock 192.168.0.1 user password /tmp/secrets
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_setup.h"
diff --git a/example/sftp_write.c b/example/sftp_write.c
--- a/example/sftp_write.c
+++ b/example/sftp_write.c
@@ -6,6 +6,8 @@
  * and path to copy, but you can specify them on the command line like:
  *
  * $ ./sftp_write 192.168.0.1 user password sftp_write.c /tmp/secrets
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_setup.h"
diff --git a/example/sftp_write_nonblock.c b/example/sftp_write_nonblock.c
--- a/example/sftp_write_nonblock.c
+++ b/example/sftp_write_nonblock.c
@@ -6,6 +6,8 @@
  * and path to copy, but you can specify them on the command line like:
  *
  * $ ./sftp_write_nonblock 192.168.0.1 user password thisfile /tmp/storehere
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_setup.h"
diff --git a/example/sftp_write_sliding.c b/example/sftp_write_sliding.c
--- a/example/sftp_write_sliding.c
+++ b/example/sftp_write_sliding.c
@@ -6,6 +6,8 @@
  * and path to copy, but you can specify them on the command line like:
  *
  * $ ./sftp_write_sliding 192.168.0.1 user password thisfile /tmp/storehere
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_setup.h"
diff --git a/example/sftpdir.c b/example/sftpdir.c
--- a/example/sftpdir.c
+++ b/example/sftpdir.c
@@ -6,6 +6,8 @@
  * path, but you can specify them on the command line like:
  *
  * $ ./sftpdir 192.168.0.1 user password /tmp/secretdir
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_setup.h"
diff --git a/example/sftpdir_nonblock.c b/example/sftpdir_nonblock.c
--- a/example/sftpdir_nonblock.c
+++ b/example/sftpdir_nonblock.c
@@ -6,6 +6,8 @@
  * path, but you can specify them on the command line like:
  *
  * $ ./sftpdir_nonblock 192.168.0.1 user password /tmp/secretdir
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_setup.h"
diff --git a/example/ssh2.c b/example/ssh2.c
--- a/example/ssh2.c
+++ b/example/ssh2.c
@@ -11,6 +11,8 @@
  *  -i authenticate using keyboard-interactive
  *  -k authenticate using public key (password argument decrypts keyfile)
  *  command executes on the remote machine
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_setup.h"
diff --git a/example/ssh2_agent.c b/example/ssh2_agent.c
--- a/example/ssh2_agent.c
+++ b/example/ssh2_agent.c
@@ -5,6 +5,8 @@
  * The sample code has default values for host name, user name:
  *
  * $ ./ssh2_agent host user
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_setup.h"
diff --git a/example/ssh2_agent_forwarding.c b/example/ssh2_agent_forwarding.c
--- a/example/ssh2_agent_forwarding.c
+++ b/example/ssh2_agent_forwarding.c
@@ -10,6 +10,7 @@
  *
  * $ ./ssh2_agent_forwarding 127.0.0.1 user "uptime"
  *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_setup.h"
diff --git a/example/ssh2_echo.c b/example/ssh2_echo.c
--- a/example/ssh2_echo.c
+++ b/example/ssh2_echo.c
@@ -5,6 +5,7 @@
  *
  * $ ./ssh2_echo 127.0.0.1 user password
  *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_setup.h"
diff --git a/example/ssh2_exec.c b/example/ssh2_exec.c
--- a/example/ssh2_exec.c
+++ b/example/ssh2_exec.c
@@ -7,6 +7,7 @@
  *
  * $ ./ssh2_exec 127.0.0.1 user password "uptime"
  *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_setup.h"
diff --git a/example/subsystem_netconf.c b/example/subsystem_netconf.c
--- a/example/subsystem_netconf.c
+++ b/example/subsystem_netconf.c
@@ -1,4 +1,7 @@
-/* Copyright (C) The libssh2 project and its contributors. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #include "libssh2_setup.h"
 #include <libssh2.h>
diff --git a/example/tcpip-forward.c b/example/tcpip-forward.c
--- a/example/tcpip-forward.c
+++ b/example/tcpip-forward.c
@@ -1,4 +1,7 @@
-/* Copyright (C) The libssh2 project and its contributors. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #include "libssh2_setup.h"
 #include <libssh2.h>
diff --git a/example/x11.c b/example/x11.c
--- a/example/x11.c
+++ b/example/x11.c
@@ -3,6 +3,8 @@
  * Sample showing how to makes SSH2 with X11 Forwarding works.
  *
  * $ ./x11 host user password [DEBUG]
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_setup.h"
diff --git a/get_ver.awk b/get_ver.awk
--- a/get_ver.awk
+++ b/get_ver.awk
@@ -1,4 +1,7 @@
 # fetch libssh2 version number from input file and write them to STDOUT
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
+
 BEGIN {
   while ((getline < ARGV[1]) > 0) {
     if (match ($0, /^#define LIBSSH2_COPYRIGHT "[^"]+"$/)) {
diff --git a/git2news.pl b/git2news.pl
--- a/git2news.pl
+++ b/git2news.pl
@@ -1,4 +1,6 @@
 #!/usr/bin/env perl
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
 
 # git log --pretty=fuller --no-color --date=short --decorate=full
 
diff --git a/include/libssh2.h b/include/libssh2.h
--- a/include/libssh2.h
+++ b/include/libssh2.h
@@ -35,6 +35,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #ifndef LIBSSH2_H
diff --git a/include/libssh2_publickey.h b/include/libssh2_publickey.h
--- a/include/libssh2_publickey.h
+++ b/include/libssh2_publickey.h
@@ -41,6 +41,8 @@
  *
  * For more information on the publickey subsystem,
  * refer to IETF draft: secsh-publickey
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #ifndef LIBSSH2_PUBLICKEY_H
diff --git a/include/libssh2_sftp.h b/include/libssh2_sftp.h
--- a/include/libssh2_sftp.h
+++ b/include/libssh2_sftp.h
@@ -33,6 +33,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #ifndef LIBSSH2_SFTP_H
diff --git a/libssh2-style.el b/libssh2-style.el
--- a/libssh2-style.el
+++ b/libssh2-style.el
@@ -1,4 +1,6 @@
 ;;;; Emacs Lisp help for writing libssh2 code. ;;;;
+;;; Copyright (C) The libssh2 project and its contributors.
+;;; SPDX-License-Identifier: BSD-3-Clause
 
 ;;; The libssh2 hacker's C conventions.
 ;;; See the sample.emacs file on how this file can be made to take
diff --git a/libssh2.pc.in b/libssh2.pc.in
--- a/libssh2.pc.in
+++ b/libssh2.pc.in
@@ -1,5 +1,8 @@
 ###########################################################################
 # libssh2 installation details
+#
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
 ###########################################################################
 
 prefix=@prefix@
diff --git a/m4/lib-ld.m4 b/m4/lib-ld.m4
--- a/m4/lib-ld.m4
+++ b/m4/lib-ld.m4
@@ -3,6 +3,8 @@ dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
+dnl
+dnl SPDX-License-Identifier: FSFULLR
 
 dnl Subroutines of libtool.m4,
 dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
diff --git a/m4/lib-link.m4 b/m4/lib-link.m4
--- a/m4/lib-link.m4
+++ b/m4/lib-link.m4
@@ -3,6 +3,8 @@ dnl Copyright (C) 2001-2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
+dnl
+dnl SPDX-License-Identifier: FSFULLR
 
 dnl From Bruno Haible.
 
diff --git a/m4/lib-prefix.m4 b/m4/lib-prefix.m4
--- a/m4/lib-prefix.m4
+++ b/m4/lib-prefix.m4
@@ -3,6 +3,8 @@ dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
+dnl
+dnl SPDX-License-Identifier: FSFULLR
 
 dnl From Bruno Haible.
 
diff --git a/maketgz b/maketgz
--- a/maketgz
+++ b/maketgz
@@ -1,4 +1,7 @@
 #!/bin/sh
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
+#
 # Script to build release-archives with. Note that this requires a checkout
 # from git and you should first run 'autoreconf -fi' and './configure'.
 #
diff --git a/os400/ccsid.c b/os400/ccsid.c
--- a/os400/ccsid.c
+++ b/os400/ccsid.c
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 /* Character encoding wrappers. */
diff --git a/os400/include/alloca.h b/os400/include/alloca.h
--- a/os400/include/alloca.h
+++ b/os400/include/alloca.h
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #ifndef LIBSSH2_ALLOCA_H
diff --git a/os400/include/assert.h b/os400/include/assert.h
--- a/os400/include/assert.h
+++ b/os400/include/assert.h
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #ifndef LIBSSH2_ASSERT_H
diff --git a/os400/include/stdio.h b/os400/include/stdio.h
--- a/os400/include/stdio.h
+++ b/os400/include/stdio.h
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #ifndef LIBSSH2_STDIO_H
diff --git a/os400/include/sys/socket.h b/os400/include/sys/socket.h
--- a/os400/include/sys/socket.h
+++ b/os400/include/sys/socket.h
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #ifndef LIBSSH2_SYS_SOCKET_H
diff --git a/os400/initscript.sh b/os400/initscript.sh
--- a/os400/initscript.sh
+++ b/os400/initscript.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
-
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
 
 setenv()
 
diff --git a/os400/libssh2_ccsid.h b/os400/libssh2_ccsid.h
--- a/os400/libssh2_ccsid.h
+++ b/os400/libssh2_ccsid.h
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 /* CCSID conversion support. */
diff --git a/os400/libssh2_config.h b/os400/libssh2_config.h
--- a/os400/libssh2_config.h
+++ b/os400/libssh2_config.h
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #ifndef LIBSSH2_CONFIG_H
diff --git a/os400/libssh2rpg/libssh2.rpgle.in b/os400/libssh2rpg/libssh2.rpgle.in
--- a/os400/libssh2rpg/libssh2.rpgle.in
+++ b/os400/libssh2rpg/libssh2.rpgle.in
@@ -33,6 +33,8 @@
       * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
       * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
       * OF SUCH DAMAGE.
+      *
+      * SPDX-License-Identifier: BSD-3-Clause
 
       /if not defined(LIBSSH2_H_)
       /define LIBSSH2_H_
diff --git a/os400/libssh2rpg/libssh2_ccsid.rpgle.in b/os400/libssh2rpg/libssh2_ccsid.rpgle.in
--- a/os400/libssh2rpg/libssh2_ccsid.rpgle.in
+++ b/os400/libssh2rpg/libssh2_ccsid.rpgle.in
@@ -33,6 +33,8 @@
       * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
       * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
       * OF SUCH DAMAGE.
+      *
+      * SPDX-License-Identifier: BSD-3-Clause
 
       /if not defined(LIBSSH2_CCSID_H_)
       /define LIBSSH2_CCSID_H_
diff --git a/os400/libssh2rpg/libssh2_publickey.rpgle b/os400/libssh2rpg/libssh2_publickey.rpgle
--- a/os400/libssh2rpg/libssh2_publickey.rpgle
+++ b/os400/libssh2rpg/libssh2_publickey.rpgle
@@ -40,6 +40,8 @@
       *
       * For more information on the publickey subsystem,
       * refer to IETF draft: secsh-publickey
+      *
+      * SPDX-License-Identifier: BSD-3-Clause
 
       /if not defined(LIBSSH2_PUBLICKEY_H_)
       /define LIBSSH2_PUBLICKEY_H_
diff --git a/os400/libssh2rpg/libssh2_sftp.rpgle b/os400/libssh2rpg/libssh2_sftp.rpgle
--- a/os400/libssh2rpg/libssh2_sftp.rpgle
+++ b/os400/libssh2rpg/libssh2_sftp.rpgle
@@ -33,6 +33,8 @@
       * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
       * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
       * OF SUCH DAMAGE.
+      *
+      * SPDX-License-Identifier: BSD-3-Clause
 
       /if not defined(LIBSSH2_SFTP_H_)
       /define LIBSSH2_SFTP_H_
diff --git a/os400/macros.h b/os400/macros.h
--- a/os400/macros.h
+++ b/os400/macros.h
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+* SPDX-License-Identifier: BSD-3-Clause
  */
 
 #ifndef LIBSSH2_MACROS_H_
diff --git a/os400/make-include.sh b/os400/make-include.sh
--- a/os400/make-include.sh
+++ b/os400/make-include.sh
@@ -1,4 +1,6 @@
 #!/bin/sh
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
 #
 #       Installation of the header files in the OS/400 library.
 #
diff --git a/os400/make-rpg.sh b/os400/make-rpg.sh
--- a/os400/make-rpg.sh
+++ b/os400/make-rpg.sh
@@ -1,4 +1,6 @@
 #!/bin/sh
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
 #
 #       Installation of the ILE/RPG header files in the OS/400 library.
 #
diff --git a/os400/make-src.sh b/os400/make-src.sh
--- a/os400/make-src.sh
+++ b/os400/make-src.sh
@@ -1,4 +1,6 @@
 #!/bin/sh
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
 #
 #       libssh2 compilation script for the OS/400.
 #
diff --git a/os400/make.sh b/os400/make.sh
--- a/os400/make.sh
+++ b/os400/make.sh
@@ -1,4 +1,6 @@
 #!/bin/sh
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
 #
 #       libssh2 compilation script for the OS/400.
 #
diff --git a/os400/os400sys.c b/os400/os400sys.c
--- a/os400/os400sys.c
+++ b/os400/os400sys.c
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 /* OS/400 additional support. */
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -33,6 +33,8 @@
 # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
 # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
 # OF SUCH DAMAGE.
+#
+# SPDX-License-Identifier: BSD-3-Clause
 
 if(CRYPTO_BACKEND)
   list(APPEND PRIVATE_COMPILE_DEFINITIONS ${CRYPTO_BACKEND_DEFINE})
diff --git a/src/Makefile.am b/src/Makefile.am
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,3 +1,5 @@
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
 AUTOMAKE_OPTIONS = foreign nostdinc
 
 # Get the CSOURCES, HHEADERS and EXTRA_DIST defines
diff --git a/src/Makefile.inc b/src/Makefile.inc
--- a/src/Makefile.inc
+++ b/src/Makefile.inc
@@ -1,3 +1,5 @@
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
 CSOURCES =              \
   agent.c               \
   bcrypt_pbkdf.c        \
diff --git a/src/agent.c b/src/agent.c
--- a/src/agent.c
+++ b/src/agent.c
@@ -35,6 +35,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/agent_win.c b/src/agent_win.c
--- a/src/agent_win.c
+++ b/src/agent_win.c
@@ -35,6 +35,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause AND BSD-2-Clause
  */
 
 #ifdef HAVE_WIN32_AGENTS /* Compile this via agent.c */
diff --git a/src/bcrypt_pbkdf.c b/src/bcrypt_pbkdf.c
--- a/src/bcrypt_pbkdf.c
+++ b/src/bcrypt_pbkdf.c
@@ -13,6 +13,8 @@
  * 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.
+ *
+ * SPDX-License-Identifier: MIT
  */
 
 #include "libssh2_priv.h"
diff --git a/src/blowfish.c b/src/blowfish.c
--- a/src/blowfish.c
+++ b/src/blowfish.c
@@ -28,6 +28,8 @@
  * 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.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 /*
diff --git a/src/channel.c b/src/channel.c
--- a/src/channel.c
+++ b/src/channel.c
@@ -35,6 +35,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/channel.h b/src/channel.h
--- a/src/channel.h
+++ b/src/channel.h
@@ -36,6 +36,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 /*
diff --git a/src/comp.c b/src/comp.c
--- a/src/comp.c
+++ b/src/comp.c
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/comp.h b/src/comp.h
--- a/src/comp.h
+++ b/src/comp.h
@@ -35,6 +35,7 @@
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
  *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/crypt.c b/src/crypt.c
--- a/src/crypt.c
+++ b/src/crypt.c
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/crypto.c b/src/crypto.c
--- a/src/crypto.c
+++ b/src/crypto.c
@@ -1,4 +1,7 @@
-/* Copyright (C) Viktor Szakats */
+/* Copyright (C) Viktor Szakats
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #define LIBSSH2_CRYPTO_C
 #include "libssh2_priv.h"
diff --git a/src/crypto.h b/src/crypto.h
--- a/src/crypto.h
+++ b/src/crypto.h
@@ -37,6 +37,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #if defined(LIBSSH2_OPENSSL) || defined(LIBSSH2_WOLFSSL)
diff --git a/src/global.c b/src/global.c
--- a/src/global.c
+++ b/src/global.c
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/hostkey.c b/src/hostkey.c
--- a/src/hostkey.c
+++ b/src/hostkey.c
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/keepalive.c b/src/keepalive.c
--- a/src/keepalive.c
+++ b/src/keepalive.c
@@ -34,6 +34,7 @@
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
  *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/kex.c b/src/kex.c
--- a/src/kex.c
+++ b/src/kex.c
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/knownhost.c b/src/knownhost.c
--- a/src/knownhost.c
+++ b/src/knownhost.c
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/libgcrypt.c b/src/libgcrypt.c
--- a/src/libgcrypt.c
+++ b/src/libgcrypt.c
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #ifdef LIBSSH2_CRYPTO_C /* Compile this via crypto.c */
diff --git a/src/libgcrypt.h b/src/libgcrypt.h
--- a/src/libgcrypt.h
+++ b/src/libgcrypt.h
@@ -37,6 +37,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #define LIBSSH2_CRYPTO_ENGINE libssh2_gcrypt
diff --git a/src/libssh2.rc b/src/libssh2.rc
--- a/src/libssh2.rc
+++ b/src/libssh2.rc
@@ -1,5 +1,8 @@
 /***************************************************************************
-* libssh2 Windows resource file                                            *
+* libssh2 Windows resource file
+* Copyright (C) The libssh2 project and its contributors.
+*                                      
+* SPDX-License-Identifier: BSD-3-Clause
 ***************************************************************************/
 #include <winver.h>
 #include "libssh2.h"
diff --git a/src/libssh2_config_cmake.h.in b/src/libssh2_config_cmake.h.in
--- a/src/libssh2_config_cmake.h.in
+++ b/src/libssh2_config_cmake.h.in
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 /* Headers */
diff --git a/src/libssh2_priv.h b/src/libssh2_priv.h
--- a/src/libssh2_priv.h
+++ b/src/libssh2_priv.h
@@ -37,6 +37,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 /* Header used by 'src' */
diff --git a/src/libssh2_setup.h b/src/libssh2_setup.h
--- a/src/libssh2_setup.h
+++ b/src/libssh2_setup.h
@@ -1,4 +1,7 @@
-/* Copyright (C) Viktor Szakats */
+/* Copyright (C) Viktor Szakats
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #ifndef LIBSSH2_SETUP_H
 #define LIBSSH2_SETUP_H
diff --git a/src/mac.c b/src/mac.c
--- a/src/mac.c
+++ b/src/mac.c
@@ -33,6 +33,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/mac.h b/src/mac.h
--- a/src/mac.h
+++ b/src/mac.h
@@ -36,6 +36,7 @@
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
  *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/mbedtls.c b/src/mbedtls.c
--- a/src/mbedtls.c
+++ b/src/mbedtls.c
@@ -33,6 +33,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #ifdef LIBSSH2_CRYPTO_C /* Compile this via crypto.c */
diff --git a/src/mbedtls.h b/src/mbedtls.h
--- a/src/mbedtls.h
+++ b/src/mbedtls.h
@@ -35,6 +35,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #define LIBSSH2_CRYPTO_ENGINE libssh2_mbedtls
diff --git a/src/misc.c b/src/misc.c
--- a/src/misc.c
+++ b/src/misc.c
@@ -35,6 +35,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/misc.h b/src/misc.h
--- a/src/misc.h
+++ b/src/misc.h
@@ -35,6 +35,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #ifdef LIBSSH2_NO_CLEAR_MEMORY
diff --git a/src/openssl.c b/src/openssl.c
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -35,6 +35,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #ifdef LIBSSH2_CRYPTO_C /* Compile this via crypto.c */
diff --git a/src/openssl.h b/src/openssl.h
--- a/src/openssl.h
+++ b/src/openssl.h
@@ -36,6 +36,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #define LIBSSH2_CRYPTO_ENGINE libssh2_openssl
diff --git a/src/os400qc3.c b/src/os400qc3.c
--- a/src/os400qc3.c
+++ b/src/os400qc3.c
@@ -35,6 +35,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #ifdef LIBSSH2_CRYPTO_C /* Compile this via crypto.c */
diff --git a/src/os400qc3.h b/src/os400qc3.h
--- a/src/os400qc3.h
+++ b/src/os400qc3.h
@@ -37,6 +37,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #define LIBSSH2_CRYPTO_ENGINE libssh2_os400qc3
diff --git a/src/packet.c b/src/packet.c
--- a/src/packet.c
+++ b/src/packet.c
@@ -36,6 +36,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/packet.h b/src/packet.h
--- a/src/packet.h
+++ b/src/packet.h
@@ -37,6 +37,7 @@
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
  *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 int _libssh2_packet_read(LIBSSH2_SESSION * session);
diff --git a/src/pem.c b/src/pem.c
--- a/src/pem.c
+++ b/src/pem.c
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/publickey.c b/src/publickey.c
--- a/src/publickey.c
+++ b/src/publickey.c
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/scp.c b/src/scp.c
--- a/src/scp.c
+++ b/src/scp.c
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/session.c b/src/session.c
--- a/src/session.c
+++ b/src/session.c
@@ -35,6 +35,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/session.h b/src/session.h
--- a/src/session.h
+++ b/src/session.h
@@ -37,6 +37,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 /* Conveniance-macros to allow code like this;
diff --git a/src/sftp.c b/src/sftp.c
--- a/src/sftp.c
+++ b/src/sftp.c
@@ -35,6 +35,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/sftp.h b/src/sftp.h
--- a/src/sftp.h
+++ b/src/sftp.h
@@ -37,6 +37,7 @@
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
  *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 /*
diff --git a/src/transport.c b/src/transport.c
--- a/src/transport.c
+++ b/src/transport.c
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 /*
diff --git a/src/transport.h b/src/transport.h
--- a/src/transport.h
+++ b/src/transport.h
@@ -38,6 +38,8 @@
  * OF SUCH DAMAGE.
  *
  * This file handles reading and writing to the SECSH transport layer. RFC4253.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/userauth.c b/src/userauth.c
--- a/src/userauth.c
+++ b/src/userauth.c
@@ -35,6 +35,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/userauth.h b/src/userauth.h
--- a/src/userauth.h
+++ b/src/userauth.h
@@ -36,6 +36,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 int
diff --git a/src/userauth_kbd_packet.c b/src/userauth_kbd_packet.c
--- a/src/userauth_kbd_packet.c
+++ b/src/userauth_kbd_packet.c
@@ -33,6 +33,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/userauth_kbd_packet.h b/src/userauth_kbd_packet.h
--- a/src/userauth_kbd_packet.h
+++ b/src/userauth_kbd_packet.h
@@ -33,6 +33,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #ifndef __LIBSSH2_USERAUTH_KBD_PARSE_H
diff --git a/src/version.c b/src/version.c
--- a/src/version.c
+++ b/src/version.c
@@ -34,6 +34,7 @@
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
  *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/src/wincng.c b/src/wincng.c
--- a/src/wincng.c
+++ b/src/wincng.c
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #ifdef LIBSSH2_CRYPTO_C /* Compile this via crypto.c */
diff --git a/src/wincng.h b/src/wincng.h
--- a/src/wincng.h
+++ b/src/wincng.h
@@ -36,6 +36,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #define LIBSSH2_CRYPTO_ENGINE libssh2_wincng


Test patch:
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -33,6 +33,8 @@
 # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
 # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
 # OF SUCH DAMAGE.
+#
+# SPDX-License-Identifier: BSD-3-Clause
 
 include(CopyRuntimeDependencies)
 
diff --git a/tests/Makefile.am b/tests/Makefile.am
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,3 +1,5 @@
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
 SUBDIRS = ossfuzz
 
 AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src -I$(top_srcdir)/include
diff --git a/tests/Makefile.inc b/tests/Makefile.inc
--- a/tests/Makefile.inc
+++ b/tests/Makefile.inc
@@ -1,3 +1,5 @@
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
 # Keep this list sorted
 #
 # NOTE: test_auth_keyboard_info_request does not use the network, but when
diff --git a/tests/gen_keys.sh b/tests/gen_keys.sh
--- a/tests/gen_keys.sh
+++ b/tests/gen_keys.sh
@@ -1,6 +1,7 @@
 #!/bin/sh
-
+#
 # Copyright (C) Viktor Szakats
+# SPDX-License-Identifier: BSD-3-Clause
 
 set -e
 set -u
diff --git a/tests/mansyntax.sh b/tests/mansyntax.sh
--- a/tests/mansyntax.sh
+++ b/tests/mansyntax.sh
@@ -1,4 +1,6 @@
 #!/bin/sh
+# Copyright (C) The libssh2 project and its contributors.
+# SPDX-License-Identifier: BSD-3-Clause
 
 set -e
 set -u
diff --git a/tests/openssh_fixture.c b/tests/openssh_fixture.c
--- a/tests/openssh_fixture.c
+++ b/tests/openssh_fixture.c
@@ -33,6 +33,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "session_fixture.h"
diff --git a/tests/openssh_fixture.h b/tests/openssh_fixture.h
--- a/tests/openssh_fixture.h
+++ b/tests/openssh_fixture.h
@@ -33,6 +33,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #ifndef LIBSSH2_TESTS_OPENSSH_FIXTURE_H
diff --git a/tests/runner.c b/tests/runner.c
--- a/tests/runner.c
+++ b/tests/runner.c
@@ -33,6 +33,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "runner.h"
diff --git a/tests/runner.h b/tests/runner.h
--- a/tests/runner.h
+++ b/tests/runner.h
@@ -33,6 +33,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #ifndef LIBSSH2_TESTS_RUNNER_H
diff --git a/tests/session_fixture.c b/tests/session_fixture.c
--- a/tests/session_fixture.c
+++ b/tests/session_fixture.c
@@ -33,6 +33,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "session_fixture.h"
diff --git a/tests/session_fixture.h b/tests/session_fixture.h
--- a/tests/session_fixture.h
+++ b/tests/session_fixture.h
@@ -33,6 +33,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #ifndef LIBSSH2_TESTS_SESSION_FIXTURE_H
diff --git a/tests/test_aa_warmup.c b/tests/test_aa_warmup.c
--- a/tests/test_aa_warmup.c
+++ b/tests/test_aa_warmup.c
@@ -1,4 +1,7 @@
-/* Copyright (C) Viktor Szakats */
+/* Copyright (C) Viktor Szakats
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 /* Warm-up test. Always return success.
    Workaround for CI/docker/etc flakiness on the first run. */
diff --git a/tests/test_agent_forward_ok.c b/tests/test_agent_forward_ok.c
--- a/tests/test_agent_forward_ok.c
+++ b/tests/test_agent_forward_ok.c
@@ -1,4 +1,7 @@
-/* Copyright (C) The libssh2 project and its contributors. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #include "runner.h"
 
diff --git a/tests/test_auth_keyboard_fail.c b/tests/test_auth_keyboard_fail.c
--- a/tests/test_auth_keyboard_fail.c
+++ b/tests/test_auth_keyboard_fail.c
@@ -1,4 +1,7 @@
-/* Copyright (C) The libssh2 project and its contributors. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #include "runner.h"
 
diff --git a/tests/test_auth_keyboard_info_request.c b/tests/test_auth_keyboard_info_request.c
--- a/tests/test_auth_keyboard_info_request.c
+++ b/tests/test_auth_keyboard_info_request.c
@@ -33,6 +33,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/tests/test_auth_keyboard_ok.c b/tests/test_auth_keyboard_ok.c
--- a/tests/test_auth_keyboard_ok.c
+++ b/tests/test_auth_keyboard_ok.c
@@ -1,4 +1,7 @@
-/* Copyright (C) The libssh2 project and its contributors. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #include "runner.h"
 
diff --git a/tests/test_auth_password_fail_password.c b/tests/test_auth_password_fail_password.c
--- a/tests/test_auth_password_fail_password.c
+++ b/tests/test_auth_password_fail_password.c
@@ -1,4 +1,7 @@
-/* Copyright (C) The libssh2 project and its contributors. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #include "runner.h"
 
diff --git a/tests/test_auth_password_fail_username.c b/tests/test_auth_password_fail_username.c
--- a/tests/test_auth_password_fail_username.c
+++ b/tests/test_auth_password_fail_username.c
@@ -1,4 +1,7 @@
-/* Copyright (C) The libssh2 project and its contributors. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #include "runner.h"
 
diff --git a/tests/test_auth_password_ok.c b/tests/test_auth_password_ok.c
--- a/tests/test_auth_password_ok.c
+++ b/tests/test_auth_password_ok.c
@@ -1,4 +1,7 @@
-/* Copyright (C) The libssh2 project and its contributors. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #include "runner.h"
 
diff --git a/tests/test_auth_pubkey_fail.c b/tests/test_auth_pubkey_fail.c
--- a/tests/test_auth_pubkey_fail.c
+++ b/tests/test_auth_pubkey_fail.c
@@ -1,4 +1,7 @@
-/* Copyright (C) The libssh2 project and its contributors. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #include "runner.h"
 
diff --git a/tests/test_auth_pubkey_ok_dsa.c b/tests/test_auth_pubkey_ok_dsa.c
--- a/tests/test_auth_pubkey_ok_dsa.c
+++ b/tests/test_auth_pubkey_ok_dsa.c
@@ -1,4 +1,7 @@
-/* Copyright (C) The libssh2 project and its contributors. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #include "runner.h"
 
diff --git a/tests/test_auth_pubkey_ok_ecdsa.c b/tests/test_auth_pubkey_ok_ecdsa.c
--- a/tests/test_auth_pubkey_ok_ecdsa.c
+++ b/tests/test_auth_pubkey_ok_ecdsa.c
@@ -1,4 +1,7 @@
-/* Copyright (C) The libssh2 project and its contributors. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #include "runner.h"
 
diff --git a/tests/test_auth_pubkey_ok_ecdsa_signed.c b/tests/test_auth_pubkey_ok_ecdsa_signed.c
--- a/tests/test_auth_pubkey_ok_ecdsa_signed.c
+++ b/tests/test_auth_pubkey_ok_ecdsa_signed.c
@@ -1,4 +1,7 @@
-/* Copyright (C) The libssh2 project and its contributors. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #include "runner.h"
 
diff --git a/tests/test_auth_pubkey_ok_ed25519.c b/tests/test_auth_pubkey_ok_ed25519.c
--- a/tests/test_auth_pubkey_ok_ed25519.c
+++ b/tests/test_auth_pubkey_ok_ed25519.c
@@ -1,4 +1,7 @@
-/* Copyright (C) The libssh2 project and its contributors. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #include "runner.h"
 
diff --git a/tests/test_auth_pubkey_ok_ed25519_encrypted.c b/tests/test_auth_pubkey_ok_ed25519_encrypted.c
--- a/tests/test_auth_pubkey_ok_ed25519_encrypted.c
+++ b/tests/test_auth_pubkey_ok_ed25519_encrypted.c
@@ -1,4 +1,7 @@
-/* Copyright (C) The libssh2 project and its contributors. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #include "runner.h"
 
diff --git a/tests/test_auth_pubkey_ok_ed25519_mem.c b/tests/test_auth_pubkey_ok_ed25519_mem.c
--- a/tests/test_auth_pubkey_ok_ed25519_mem.c
+++ b/tests/test_auth_pubkey_ok_ed25519_mem.c
@@ -1,4 +1,7 @@
-/* Copyright (C) The libssh2 project and its contributors. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #include "runner.h"
 
diff --git a/tests/test_auth_pubkey_ok_rsa.c b/tests/test_auth_pubkey_ok_rsa.c
--- a/tests/test_auth_pubkey_ok_rsa.c
+++ b/tests/test_auth_pubkey_ok_rsa.c
@@ -1,4 +1,7 @@
-/* Copyright (C) The libssh2 project and its contributors. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #include "runner.h"
 
diff --git a/tests/test_auth_pubkey_ok_rsa_encrypted.c b/tests/test_auth_pubkey_ok_rsa_encrypted.c
--- a/tests/test_auth_pubkey_ok_rsa_encrypted.c
+++ b/tests/test_auth_pubkey_ok_rsa_encrypted.c
@@ -1,4 +1,7 @@
-/* Copyright (C) The libssh2 project and its contributors. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #include "runner.h"
 
diff --git a/tests/test_auth_pubkey_ok_rsa_openssh.c b/tests/test_auth_pubkey_ok_rsa_openssh.c
--- a/tests/test_auth_pubkey_ok_rsa_openssh.c
+++ b/tests/test_auth_pubkey_ok_rsa_openssh.c
@@ -1,4 +1,7 @@
-/* Copyright (C) The libssh2 project and its contributors. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #include "runner.h"
 
diff --git a/tests/test_auth_pubkey_ok_rsa_signed.c b/tests/test_auth_pubkey_ok_rsa_signed.c
--- a/tests/test_auth_pubkey_ok_rsa_signed.c
+++ b/tests/test_auth_pubkey_ok_rsa_signed.c
@@ -1,4 +1,7 @@
-/* Copyright (C) The libssh2 project and its contributors. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #include "runner.h"
 
diff --git a/tests/test_hostkey.c b/tests/test_hostkey.c
--- a/tests/test_hostkey.c
+++ b/tests/test_hostkey.c
@@ -1,4 +1,7 @@
-/* Copyright (C) The libssh2 project and its contributors. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #include "runner.h"
 
diff --git a/tests/test_hostkey_hash.c b/tests/test_hostkey_hash.c
--- a/tests/test_hostkey_hash.c
+++ b/tests/test_hostkey_hash.c
@@ -1,4 +1,7 @@
-/* Copyright (C) The libssh2 project and its contributors. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
 
 #include "runner.h"
 
diff --git a/tests/test_read.c b/tests/test_read.c
--- a/tests/test_read.c
+++ b/tests/test_read.c
@@ -1,6 +1,8 @@
 /* Copyright (C) The libssh2 project and its contributors.
  *
  * libssh2 test receiving large amounts of data through a channel
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "runner.h"
diff --git a/tests/test_read_algos.test b/tests/test_read_algos.test
--- a/tests/test_read_algos.test
+++ b/tests/test_read_algos.test
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
-
 # Copyright (C) Viktor Szakats
+# SPDX-License-Identifier: BSD-3-Clause
 
 set -e
 set -u
diff --git a/tests/test_simple.c b/tests/test_simple.c
--- a/tests/test_simple.c
+++ b/tests/test_simple.c
@@ -34,6 +34,8 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  * OF SUCH DAMAGE.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include "libssh2_priv.h"
diff --git a/tests/test_ssh2.c b/tests/test_ssh2.c
--- a/tests/test_ssh2.c
+++ b/tests/test_ssh2.c
@@ -1,6 +1,9 @@
-/* Copyright (C) The libssh2 project and its contributors. */
-
-/* Self test, based on example/ssh2.c. */
+/* Copyright (C) The libssh2 project and its contributors.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ * Self test, based on example/ssh2.c.
+ */
 
 #include "libssh2_setup.h"
 #include <libssh2.h>
diff --git a/tests/test_sshd.test b/tests/test_sshd.test
--- a/tests/test_sshd.test
+++ b/tests/test_sshd.test
@@ -1,7 +1,8 @@
 #!/usr/bin/env bash
-
-# Written by Simon Josefsson and Viktor Szakats
-
+# Copyright (C) Simon Josefsson
+# Copyright (C) Viktor Szakats
+# SPDX-License-Identifier: BSD-3-Clause
+#
 # Start sshd, invoke test(s), saving exit code, kill sshd, and
 # return exit code.