Skip to content

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

Closed
vszakats wants to merge 8 commits into
libssh2:masterfrom
vszakats:reuse
Closed

vszakats wants to merge 8 commits into
libssh2:masterfrom
vszakats:reuse

Conversation

@vszakats

@vszakats vszakats commented Oct 13, 2025 •

Copy link
Copy Markdown
Member

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.

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.
@vszakats vszakats changed the title REUSE: add copyright headers to more files REUSE: add copyright headers to more files, and .gitignore updates Oct 13, 2025
@vszakats

Copy link
Copy Markdown
Member Author

Seems absolutely impossible to keep this project above the water. CI is again failing for libgcrypt and wolfssl builds.

@vszakats

vszakats commented Oct 13, 2025 •

Copy link
Copy Markdown
Member Author

This is the super helpful message from docker (I guess?):

Error running command 'docker pull %s' (exit 256): Error response from daemon: manifest unknown

And the generic error message from libssh2, which is the same for most if not all CI fails:

libssh2_session_handshake failed (-5): Unable to exchange encryption keys

@vszakats

vszakats commented Oct 13, 2025 •

Copy link
Copy Markdown
Member Author

Also AppVeyor fails now with the same manifest issue: https://ci.appveyor.com/project/libssh2org/libssh2/builds/52898081/job/6yksc030cfr6um7h#L355

edit: all these are unrelated to this patch, though they also did not appear in the CI run right before this patch, i.e. in the latest master run.

edit 2: by touching sshd_config, the container image got rebuilt, and the also bumped, and since it uses debian:stable, it got bumped to Trixie (from Bookworm), breaking these tests.

@vszakats vszakats closed this in 4f9e6e0 Oct 13, 2025
@vszakats
vszakats deleted the reuse branch October 13, 2025 11:35
vszakats added a commit that referenced this pull request Oct 13, 2025
Tests started failing after touching `sshd_config`, which bumped
the test container from Debian Bookworm to Trixie, and openssh-server
from 9.2p1 to 10.0p1 with it. OpenSSH v10 no longer supports legacy KEX
algos `diffie-hellman-group*` and `diffie-hellman-group-exchange-*`,
making libssh2 require ECDSA or ED25519 to enable `curve25519-sha256*`
or `ecdh-sha2-*`, for the tests to succeed.

libgcrypt, stock Ubuntu wolfSSL, and WinCNG CI jobs broke.

- ED25519 is only supported with OpenSSL and LibreSSL 3.7+.
- ECDSA is supported by OpenSSL and mbedTLS (unless disabled),
  by wolfSSL in certain cases (but not on Ubuntu 24.04 with the stock
  v5.6.6 build), and by WinCNG when explicitly enabled, and targeting
  Windows 10/2016 Server.

Fixed by:

- wolfSSL support received an ECDSA detection fix, that resolved
  the issue with the stock Ubuntu builds, via:
  b807dac #1723

- WinCNG had ECDSA enabled in CI in the job running tests, via:
  0f58438 #1721

- to make CI pass, disable running tests with Libgcrypt in this patch.

An alternate option is to downgrade to Bookworm, with the undesired
effect that its openssh-server doesn't support ML-KEM and other modern
SSH features, meaning those could not be tested once implemented in
libssh2, e.g. in #1644.

Ref: https://www.openssh.com/txt/release-10.0
Ref: https://packages.debian.org/trixie/openssh-server
Ref: https://packages.debian.org/bookworm/openssh-server
Ref: https://packages.ubuntu.com/noble/libwolfssl-dev

Bug: #1718 (comment)
Follow-up to 4f9e6e0 #1718

Closes #1720
vszakats added a commit to vszakats/libssh2 that referenced this pull request Apr 9, 2026
libssh2 does not create this and it's not libssh2-specific. The best
place for this is the global .gitignore on the local macOS machine.

Follow-up to 2b71623 libssh2#1803
Follow-up to 4f9e6e0 libssh2#1718
vszakats added a commit that referenced this pull request Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant