1
0
mirror of https://github.com/libssh2/libssh2.git synced 2026-10-24 03:48:58 +03:00
Commit Graph

8 Commits

Author SHA1 Message Date
Viktor Szakats
c8543ef39f tests: upload host pubkeys to repo
Also: regen ed25519 key to have an empty comment like its siblings.

To be used for generating host certificate keys.

Ref: 65a276e8fe #2064
Ref: #2435

Closes #2511
2026-08-06 02:05:49 +02:00
Viktor Szakats
72693e4e36 tests: rename keys/tests to contain the key format
To make navigating, identifying, key files and tests easier.

Also:
- example/ssh2: sync key filenames with rest of examples.

Closes #2510
2026-08-06 01:06:21 +02:00
Viktor Szakats
f5821e600d tests: move trusted CA private keys off the test server
They are unused on the server and meant to stay on the issuer machine.
Only the trusted public CA keys are needed on the server.

Reported by Copilot
Bug: https://github.com/libssh2/libssh2/pull/2496#discussion_r3702522974

Closes #2497
2026-08-03 11:32:06 +02:00
Viktor Szakats
3a189abe0e spacecheck: cap max lines per file, use single-quotes
- limit lines to 10000 per file to prevent committing a large file by
  accident.

  Current top-5:
  ```
      4007 src/kex.c
      3886 src/sftp.c
      3674 src/openssl.c
      3256 src/wincng.c
      2848 src/channel.c
  ```
- use single-quotes to reduce escaping.

Closes #2480
2026-08-02 13:02:24 +02:00
Viktor Szakats
e77f5da49d tests: sync up pubkey comments with generator (tidy-up)
Also:
- switch to `id_` prefix in comments to match filenames.
- use empty comment to add variation.
- spacecheck: allow trailing spaces for `.pub` files, this is how
  `ssh-keygen -C ''` generates them.

Closes #2472
2026-08-01 16:08:54 +02:00
Viktor Szakats
a824e9d8a9 tests: move test keys into keys subdirectory
Also:
- replace the prefix `key_` with `id_` to match defaults and make them
  easier to identify.
- rename `gen_keys.sh` to `keys-generate.sh`.
- include `keys-generate.sh` in tarball.

Closes #2471
2026-08-01 15:24:36 +02:00
Viktor Szakats
9f4a270857 configure: drop old, vendored, ld detection code, merge and rename rest
Keep `lib-link.m4`, rename to `libssh2-link.m4`, namespace its content
to `LIBSSH2_`. Also copy 3 lower-level functions from another `.m4`.
Drop using vendored `AC_LIB_PROG_LD`, which served the purpose of
detecting `LD` and `with_gnu_ld`.

To reduce amount of old, complex vendored code and also to avoid
autoreconf auto-updating these in-repo files locally.

Follow-up to 0443145a75 #1920
Follow-up to bcc9292aab #1921

Closes #1916
2026-05-11 14:27:13 +02:00
Viktor Szakats
317907545b tidy-up: rename ci directory to scripts
To reduce differences with curl.

Also:
- add most scripts to the source distro tarball. Some were referenced
  by build scripts (e.g. `checksrc`).

Closes #1870
2026-04-23 09:09:59 +02:00