1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-10-31 23:30:25 +03:00

REUSE: add copyright headers to more files, and .gitignore updates

Also:
- rename a spellcheck file to match curl.
- editorconfig: fix line width.
- editorconfig: make it use UTF-8.
- editroconfig: apply some rules to all files.
- .gitignore: drop dupe, drop `.DS_Store` (not created by this repo),
   sort.
- .gitignore: add for tests executables.

Closes #1718
This commit is contained in:
Viktor Szakats
2025-10-13 12:10:47 +02:00
parent 2dae302489
commit 4f9e6e0bfb
24 changed files with 157 additions and 60 deletions

View File

@@ -1,9 +1,15 @@
# Copyright (C) The libssh2 project and its contributors.
#
# SPDX-License-Identifier: BSD-3-Clause
root = true root = true
[*.{c, h}] [*]
end_of_line = lf charset = utf-8
insert_final_newline = true insert_final_newline = true
indent_style = space indent_style = space
indent_size = 4
trim_trailing_whitespace = true trim_trailing_whitespace = true
max_line_length = 80
[*.{c,h}]
indent_size = 4
max_line_length = 79

6
.github/SECURITY.md vendored
View File

@@ -1,3 +1,9 @@
<!--
Copyright (C) The libssh2 project and its contributors.
SPDX-License-Identifier: BSD-3-Clause
-->
# Security Policy # Security Policy
See [SECURITY.md](https://github.com/libssh2/libssh2/blob/master/docs/SECURITY.md) for full details. See [SECURITY.md](https://github.com/libssh2/libssh2/blob/master/docs/SECURITY.md) for full details.

63
.gitignore vendored
View File

@@ -1,50 +1,51 @@
# Copyright (C) The libssh2 project and its contributors.
#
# SPDX-License-Identifier: BSD-3-Clause
.deps .deps
.libs .libs
*.a
*.lib
*.pdb
*.dll
*.def
*.exe
*.obj
*.gcno
*.gcda
.*.swp
*-*-* *-*-*
Debug *.a
Release *.def
*.dll
*.exe
*.exp *.exp
Makefile *.gcda
Makefile.in *.gcno
Makefile.inc.cmake *.la
stamp-h* *.lib
*.lo
*.o
*.obj
*.pdb
*~
aclocal.m4 aclocal.m4
autom4te.cache autom4te.cache
build
compile compile
test-driver
config.guess config.guess
config.log config.log
config.status config.status
config.sub config.sub
configure configure
Debug
depcomp depcomp
libtool install-sh
ltmain.sh
missing
tap-driver.sh
test-driver
libssh2-*.tar.bz2 libssh2-*.tar.bz2
libssh2-*.tar.gz libssh2-*.tar.gz
libssh2-*.tar.xz libssh2-*.tar.xz
libssh2-*.zip libssh2-*.zip
install-sh
*.o
*.lo
*.la
mkinstalldirs
tags
libssh2.pc libssh2.pc
libtool
ltmain.sh
Makefile
Makefile.in
Makefile.inc.cmake
missing
mkinstalldirs
Release
stamp-h*
tags
TAGS TAGS
*~ tap-driver.sh
.DS_Store test-driver
build

View File

@@ -1,3 +1,9 @@
<!--
Copyright (C) The libssh2 project and its contributors.
SPDX-License-Identifier: BSD-3-Clause
-->
# libssh2 - SSH2 library # libssh2 - SSH2 library
libssh2 is a library implementing the SSH2 protocol, available under libssh2 is a library implementing the SSH2 protocol, available under

View File

@@ -15,40 +15,19 @@ SPDX-PackageDownloadLocation = "https://libssh2.org/"
[[annotations]] [[annotations]]
path = [ path = [
".github/ISSUE_TEMPLATE/bug_report.md", ".github/ISSUE_TEMPLATE/bug_report.md",
".github/SECURITY.md",
"NEWS", "NEWS",
"README", "README",
"README.md",
"RELEASE-NOTES", "RELEASE-NOTES",
"ci/spellcheck-words.txt",
"docs/AUTHORS", "docs/AUTHORS",
"docs/BINDINGS.md",
"docs/HACKING-CRYPTO", "docs/HACKING-CRYPTO",
"docs/HACKING.md",
"docs/INSTALL_CMAKE.md",
"docs/SECURITY.md",
"docs/TODO", "docs/TODO",
"os400/README400", "os400/README400",
"tests/key_*", "tests/key_*",
"tests/openssh_server/.gitattributes",
"tests/openssh_server/authorized_keys", "tests/openssh_server/authorized_keys",
"tests/openssh_server/ca_*", "tests/openssh_server/ca_*",
"tests/openssh_server/ssh_*", "tests/openssh_server/ssh_*",
"tests/openssh_server/sshd_config",
"tests/test_read_algos.txt", "tests/test_read_algos.txt",
"vms/libssh2_config.h",
"vms/libssh2_*.dcl",
"vms/man2help.c",
"vms/readme.vms", "vms/readme.vms",
# dotfiles
".editorconfig",
".gitignore",
"docs/.gitignore",
"example/.gitignore",
"m4/.gitignore",
"src/.gitignore",
"tests/.gitignore",
"tests/ossfuzz/.gitignore",
] ]
SPDX-FileCopyrightText = "The libssh2 project and its contributors." SPDX-FileCopyrightText = "The libssh2 project and its contributors."
SPDX-License-Identifier = "BSD-3-Clause" SPDX-License-Identifier = "BSD-3-Clause"

View File

@@ -0,0 +1,6 @@
# Copyright (C) The libssh2 project and its contributors.
#
# SPDX-License-Identifier: BSD-3-Clause
gord
pase
nam

View File

@@ -1,3 +0,0 @@
gord
pase
nam

View File

@@ -8,5 +8,5 @@ cd "$(dirname "$0")"/..
# shellcheck disable=SC2046 # shellcheck disable=SC2046
codespell --skip='docs/AUTHORS' \ codespell --skip='docs/AUTHORS' \
--ignore-words='ci/spellcheck-words.txt' \ --ignore-words='ci/codespell-ignore.words' \
$(git ls-files) $(git ls-files)

4
docs/.gitignore vendored
View File

@@ -1 +1,5 @@
# Copyright (C) The libssh2 project and its contributors.
#
# SPDX-License-Identifier: BSD-3-Clause
coverage coverage

View File

@@ -1,3 +1,9 @@
<!--
Copyright (C) The libssh2 project and its contributors.
SPDX-License-Identifier: BSD-3-Clause
-->
libssh2 bindings libssh2 bindings
================ ================

View File

@@ -1,3 +1,9 @@
<!--
Copyright (C) The libssh2 project and its contributors.
SPDX-License-Identifier: BSD-3-Clause
-->
# libssh2 source code style guide # libssh2 source code style guide
- 4 level indent - 4 level indent

View File

@@ -1,3 +1,9 @@
<!--
Copyright (C) The libssh2 project and its contributors.
SPDX-License-Identifier: BSD-3-Clause
-->
License: see COPYING License: see COPYING
Source code: https://github.com/libssh2/libssh2 Source code: https://github.com/libssh2/libssh2

View File

@@ -1,3 +1,9 @@
<!--
Copyright (C) The libssh2 project and its contributors.
SPDX-License-Identifier: BSD-3-Clause
-->
libssh2 security libssh2 security
================ ================

4
example/.gitignore vendored
View File

@@ -1,3 +1,7 @@
# Copyright (C) The libssh2 project and its contributors.
#
# SPDX-License-Identifier: BSD-3-Clause
direct_tcpip direct_tcpip
scp scp
scp_nonblock scp_nonblock

4
m4/.gitignore vendored
View File

@@ -1,3 +1,7 @@
# Copyright (C) The libssh2 project and its contributors.
#
# SPDX-License-Identifier: BSD-3-Clause
libtool.m4 libtool.m4
ltoptions.m4 ltoptions.m4
ltsugar.m4 ltsugar.m4

4
src/.gitignore vendored
View File

@@ -1,3 +1,7 @@
# Copyright (C) The libssh2 project and its contributors.
#
# SPDX-License-Identifier: BSD-3-Clause
libssh2.pc libssh2.pc
libssh2_config.h libssh2_config.h
libssh2_config.h.in libssh2_config.h.in

32
tests/.gitignore vendored Normal file
View File

@@ -0,0 +1,32 @@
# Copyright (C) The libssh2 project and its contributors.
#
# SPDX-License-Identifier: BSD-3-Clause
test_aa_warmup
test_agent_forward_ok
test_auth_keyboard_fail
test_auth_keyboard_info_request
test_auth_keyboard_ok
test_auth_password_fail_password
test_auth_password_fail_username
test_auth_password_ok
test_auth_pubkey_fail
test_auth_pubkey_fail-pat1
test_auth_pubkey_fail-pat2
test_auth_pubkey_ok_dsa
test_auth_pubkey_ok_ecdsa
test_auth_pubkey_ok_ecdsa_signed
test_auth_pubkey_ok_ed25519
test_auth_pubkey_ok_ed25519_encrypted
test_auth_pubkey_ok_ed25519_mem
test_auth_pubkey_ok_rsa
test_auth_pubkey_ok_rsa_aes256gcm
test_auth_pubkey_ok_rsa_encrypted
test_auth_pubkey_ok_rsa_openssh
test_auth_pubkey_ok_rsa_sha2_256_signed
test_auth_pubkey_ok_rsa_signed
test_hostkey
test_hostkey_hash
test_read
test_simple
test_ssh2

View File

@@ -1,3 +1,7 @@
# Copyright (C) The libssh2 project and its contributors.
#
# SPDX-License-Identifier: BSD-3-Clause
# OpenSSH requires LF EOLs in key files, even on Windows, where # OpenSSH requires LF EOLs in key files, even on Windows, where
# a git checkout may set CRLF EOLs by default. # a git checkout may set CRLF EOLs by default.
* text eol=lf * text eol=lf

View File

@@ -1,3 +1,7 @@
# Copyright (C) The libssh2 project and its contributors.
#
# SPDX-License-Identifier: BSD-3-Clause
HostKeyAlgorithms +ssh-rsa HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa,ssh-rsa-cert-v01@openssh.com PubkeyAcceptedKeyTypes +ssh-rsa,ssh-rsa-cert-v01@openssh.com
MACs +hmac-sha1,hmac-sha1-96,hmac-sha2-256,hmac-sha2-512,hmac-md5,hmac-md5-96,umac-64@openssh.com,umac-128@openssh.com,hmac-sha1-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-md5-etm@openssh.com,hmac-md5-96-etm@openssh.com,umac-64-etm@openssh.com,umac-128-etm@openssh.com MACs +hmac-sha1,hmac-sha1-96,hmac-sha2-256,hmac-sha2-512,hmac-md5,hmac-md5-96,umac-64@openssh.com,umac-128@openssh.com,hmac-sha1-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-md5-etm@openssh.com,hmac-md5-96-etm@openssh.com,umac-64-etm@openssh.com,umac-128-etm@openssh.com

View File

@@ -1 +1,5 @@
# Copyright (C) The libssh2 project and its contributors.
#
# SPDX-License-Identifier: BSD-3-Clause
ssh2_client_fuzzer ssh2_client_fuzzer

View File

@@ -1,3 +1,6 @@
$! Copyright (C) The libssh2 project and its contributors.
$!
$! SPDX-License-Identifier: BSD-3-Clause
$! $!
$! $!
$ olddir = f$environment("default") $ olddir = f$environment("default")

View File

@@ -1,4 +1,6 @@
$! Copyright (C) The libssh2 project and its contributors.
$! $!
$! SPDX-License-Identifier: BSD-3-Clause
$! $!
$! $!
$ olddir = f$environment( "default" ) $ olddir = f$environment( "default" )

View File

@@ -1,3 +1,7 @@
$! Copyright (C) The libssh2 project and its contributors.
$!
$! SPDX-License-Identifier: BSD-3-Clause
$!
$! $!
$ olddir = f$environment("default") $ olddir = f$environment("default")
$ on error then goto End $ on error then goto End

View File

@@ -1,3 +1,6 @@
$! Copyright (C) The libssh2 project and its contributors.
$!
$! SPDX-License-Identifier: BSD-3-Clause
$! $!
$! $!
$ olddir = f$environment("default") $ olddir = f$environment("default")