libssh2
/
RELEASE-NOTES
273 строки · 17.1 Кб
1libssh2 1.11.1_DEV
2
3Deprecation notices:
4
5- Starting September 2024, the following algos go deprecated and will be
6disabled in default builds (with an option to enable them):
7
8- DSA: `ssh-dss` hostkeys.
9You can disable it now with `-DLIBSSH2_NO_DSA`.
10Disabled by default in OpenSSH 7.0 (2015-08-11).
11- MD5-based MACs and hashes: `hmac-md5`, `hmac-md5-96`,
12`LIBSSH2_HOSTKEY_HASH_MD5`
13You can disable it now with `-DLIBSSH2_NO_MD5`.
14Disabled by default since OpenSSH 7.2 (2016-02-29).
15- 3DES cipher: `3des-cbc`
16You can disable it now with `-DLIBSSH2_NO_3DES`.
17Disabled by default since OpenSSH 7.4 (2016-12-19).
18- RIPEMD-160 MACs: `hmac-ripemd160`, `hmac-ripemd160@openssh.com`
19You can disable it now with `-DLIBSSH2_NO_HMAC_RIPEMD`.
20Removed in OpenSSH 7.6 (2017-10-03).
21- Blowfish cipher: `blowfish-cbc`
22You can disable it now with `-DLIBSSH2_NO_BLOWFISH`.
23Removed in OpenSSH 7.6 (2017-10-03).
24- RC4 ciphers: `arcfour`, `arcfour128`
25You can disable it now with `-DLIBSSH2_NO_RC4`.
26Removed in OpenSSH 7.6 (2017-10-03).
27- CAST cipher: `cast128-cbc`
28You can disable it now with `-DLIBSSH2_NO_CAST`.
29Removed in OpenSSH 7.6 (2017-10-03).
30
31- Starting April 2025, above options will be deleted from the
32libssh2 codebase.
33
34- Default builds will also disable support for old-style, MD5-based
35encrypted private keys.
36You can disable it now with `-DLIBSSH2_NO_MD5_PEM`.
37
38This release includes the following enhancements and bugfixes:
39
40- autotools: fix to update `LDFLAGS` for each detected dependency (d19b6190 #1384 #1381 #1377)
41- autotools: delete `--disable-tests` option, fix CI tests (e051ae34 #1271 #715 revert: 7483edfa)
42- autotools: show the default for `hidden-symbols` option (a3f5594a #1269)
43- autotools: enable `-Wunused-macros` with gcc (ecdf5199 #1262 #1227 #1224)
44- autotools: fix dotless gcc and Apple clang version detections (89ccc83c #1232 #1187)
45- autotools: show more clang/gcc version details (fb580161 #1230)
46- autotools: avoid warnings in libtool stub code (96682bd5 #1227 #1224)
47- autotools: sync warning enabler code with curl (5996fefe #1223)
48- autotools: rename variable (ce5f208a #1222)
49- autotools: picky warning options tidy-up (cdca8cff #1221)
50- autotools: fix `cp` to preserve attributes and timestamp in `Makefile.am` (f64e6318)
51- autotools: fix selecting WinCNG in cross-builds (and more) (00a3b88c #1187 #1186)
52- autotools: use comma separator in `Requires.private` of `libssh2.pc` (7f83de14 #1124)
53- autotools: remove `AB_INIT` from `configure.ac` (f4f52ccc)
54- autotools: improve libz position (c89174a7 #1077 #941 #1075 #1013 regr: 4f0f4bff)
55- autotools: skip tests requiring static lib if `--disable-static` (572c57c9 #1072 #663 #1056 regr: 83853f8a)
56- build: silence warnings inside `FD_SET()`/`FD_ISSET()` macros (323a14b2 #1379)
57- build: drop `-Wformat-nonliteral` warning suppressions (c452c5cc #1342)
58- build: enable `-pedantic-errors` (3ec53f3e #1286)
59- build: add mingw-w64 support to `LIBSSH2_PRINTF()` attribute (f8c45794 #1287)
60- build: add `LIBSSH2_NO_DEPRECATED` option (b1414503 #1267 #1266 #1260 #1259)
61- build: enable missing OpenSSF-recommended warnings, with fixes (afa6b865 #1257)
62- build: enable more compiler warnings and fix them (7ecc309c #1224)
63- build: picky warning updates (328a96b3 #1219)
64- build: revert: respect autotools `DLL_EXPORT` in `libssh2.h` (481be044 #1141 #917 revert: fb1195cf)
65- build: stop requiring libssl from openssl (c84745e3 #1128)
66- build: tidy-up `libssh2.pc.in` variable names (5720dd9f #1125)
67- build: add/fix `Requires.private` packages in `libssh2.pc` (ef538069 #1123)
68- checksrc: sync with curl (8cd473c9 #1272)
69- checksrc: fix spelling in comment (a95d401f)
70- checksrc: modernise Perl file open (3d309f9b)
71- checksrc: switch to dot file (d67a91aa #1052)
72- ci: disable dependency tracking in autotools builds (e44f0418 #1396)
73- ci: fix mbedtls runners on macOS (84411539 #1381)
74- ci: enable Unity mode for most CMake builds (1bfae57b #1367 #1034)
75- ci: add shellcheck job and script (d88b9bcd)
76- ci: verify build and install from tarball (a86e27e8 #1362)
77- ci: add reproducibility test for `maketgz` (2d765e45 #1360)
78- ci: use Linux runner for BSDs, add arm64 FreeBSD 14 job (6f86b196 #1343)
79- ci: do not parallelize `distcheck` job (5e65dd87 #1339)
80- ci: add FreeBSD 14 job, fix issues (46333adf #1277)
81- ci: add OmniOS job, fix issues (5e0ec991)
82- ci: show compiler in cross/cygwin job names (c9124088)
83- ci: add OpenBSD (v7.4) job + fix build error in example (0c9a8e35 #1250)
84- ci: add NetBSD (v9.3) job (65c7a7a5)
85- ci: update and speed up FreeBSD job (eee4e805)
86- ci: use absolute path in `CMAKE_INSTALL_PREFIX` (74948816 #1247)
87- ci: boost mbedTLS build speed (236e79a1 #1245)
88- ci: add BoringSSL job (cmake, gcc, amd64) (c9dd3566 #1233)
89- ci: fixup FreeBSD version, bump mbedTLS (fea6664e #1217)
90- ci: add FreeBSD 13.2 job (a7d2a573 #1215)
91- ci: mbedTLS 3.5.0 (5e190442 #1202)
92- ci: update actions, use shallow clones with appveyor (d468a33f #1199)
93- ci: replace `mv` + `chmod` with `install` in `Dockerfile` (5754fed6 #1175)
94- ci: set file mode early in `appveyor_docker.yml` (633db55f)
95- ci: add spellcheck (codespell) (a79218d3)
96- ci: add MSYS builds (autotools and cmake) (d43b8d9b #1162)
97- ci: add Cygwin builds (autotools and cmake) (f1e96e73 #1161)
98- ci: add mingw-w64 UWP build (1215aa5f #1155 #1147)
99- ci: add missing timeout to 'autotools distcheck' step (6265ffdb)
100- ci: add non-static autotools i386 build, ignore GHA updates on AppVeyor (c6e137f7 #1074 #1072)
101- ci: prefer `=` operator in shell snippets (e5c03043 #1073)
102- ci: drop redundant/unused vars, sync var names (ab8e95bc #1059)
103- ci: add i386 Linux build (with mbedTLS) (abdf40c7 #1057 #1053)
104- ci/appveyor: bump to OpenSSL 3.2.1 (53d9c1a6 #1363 #1348)
105- ci/appveyor: re-enable parallel mode (e190e5b2 #1294 #884 #867)
106- ci/appveyor: delete UWP job broken since Visual Studio upgrade (d0a7f1da #1275)
107- ci/appveyor: YAML/PowerShell formatting, shorten variable name (06fd721f #1200)
108- ci/appveyor: move to pure PowerShell (8a081fd9 #1197)
109- ci/GHA: show configure logs on failure and other tidy-ups (dab48398 #1403)
110- ci/GHA: bump parallel jobs to nproc+1 (6f3d3bc8 #1402)
111- ci/GHA: show test logs on failure (b8ffa7a5 #1401)
112- ci/GHA: fix `Dockerfile` failing after Ubuntu package update (839bb84e #1400)
113- ci/GHA: use ubuntu-latest with OmniOS job (50143d58)
114- ci/GHA: shell syntax tidy-up (3b23e039 #1390)
115- ci/GHA: bump NetBSD/OpenBSD, add NetBSD arm64 job (e980af72 #1388)
116- ci/GHA: tidy up wolfSSL autotools config on macOS (5953c1f1 #1383)
117- ci/GHA: shorter mbedTLS autotools workaround (736e3d7d #1382 #1381)
118- ci/GHA: fix gcrypt with autotools/macOS/Homebrew/ARM64 (ae2770de #1377)
119- ci/GHA: fix verbose option for autotools jobs (499b27ae #1376)
120- ci/GHA: dump `config.log` on failure for macOS autotools jobs (4fa69214 #1375)
121- ci/GHA: fix `autoreconf` failure on macOS/Homebrew (0b64b30b #1374)
122- ci/GHA: fixup Homebrew location (for ARM runners) (6128aee0 #1373)
123- ci/GHA: review/fixup auto-cancel settings (b08cfbc9 #1292)
124- ci/GHA: restore curly braces in `if` (36748270 #1145)
125- ci/GHA: simplify `if` strings (cab3db58 #1140)
126- cmake: tidy up function name casing in `CopyRuntimeDependencies.cmake` (03547cb8)
127- cmake: use the imported target of FindOpenSSL module (82b09f9b #1322)
128- cmake: rename picky warnings script (64d6789f #1225)
129- cmake: fix multiple include of libssh2 package (932d6a32 #1216)
130- cmake: show crypto backend in feature summary (20387285 #1211)
131- cmake: simplify showing CMake version (fc00bdd7 #1203)
132- cmake: cleanup mbedTLS version detection more (4c241d5c #1196 #1192)
133- cmake: delete duplicate `include()` (30eef0a6)
134- cmake: improve/fix mbedTLS detection (41594675 #1192 #1191)
135- cmake: tidy-up `foreach()` syntax (4a64ca14 #1180)
136- cmake: verify `libssh2_VERSION` in integration tests (a20572e9)
137- cmake: show cmake versions in ci (87f5769b)
138- cmake: quote more strings (e9c7d3af #1173)
139- cmake: add `ExternalProject` integration test (aeaefaf6 #1171)
140- cmake: add integration tests (8715c3d5 #1170)
141- cmake: (re-)add aliases for `add_subdirectory()` builds (4ff64ae3 #1169)
142- cmake: style tidy-up (3fa5282d #1166)
143- cmake: add `LIB_NAME` variable (5453fc80 #1159)
144- cmake: tidy-up concatenation in `CMAKE_MODULE_PATH` (ae7d5108 #1157)
145- cmake: replace `libssh2` literals with `PROJECT_NAME` variable (72fd2595 #1152)
146- cmake: fix `STREQUAL` check in error branch (42d3bf13 #1151)
147- cmake: cache more config values on Windows (11a03690 #1142)
148- cmake: streamline invocation (f58f77b5 #1138)
149- cmake: merge `set_target_properties()` calls (a9091007 #1132)
150- cmake: (re-)add zlib to `Libs.private` in `libssh2.pc` (64643018 #1131)
151- cmake: use `wolfssl/options.h` for detection, like autotools (c5ec6c49 #1130)
152- cmake: add openssl libs to `Libs.private` in `libssh2.pc` (5cfa59d3 #1127)
153- cmake: bump minimum CMake version to v3.7.0 (9cd18f45 #1126)
154- cmake: CMAKE_SOURCE_DIR -> PROJECT_SOURCE_DIR (0f396aa9 #1121)
155- cmake: tidy-ups (2fc36790 #1122)
156- cmake: re-add `Libssh2:libssh2` for compatibility + lowercase namespace (2da13c13 #1104 #731 #1103)
157- copyright: remove years from copyright headers (187d89bb #1082)
158- docs: update `INSTALL_AUTOTOOLS` (2f0efde3 #1316)
159- docs: replace SHA1 with SHA256 in CMake example (766bde9f)
160- example: restore `sys/time.h` for AIX (24503cb9 #1340 #1335 #1334 #1001 regr: e53aae0e)
161- example: use `libssh2_socket_t` in X11 example (3f60ccb7)
162- example: replace remaining libssh2_scp_recv with libssh2_scp_recv2 in output messages (8d69e63d #1258 follow: 6c84a426)
163- example: fix regression in `ssh2_exec.c` (279a2e57 #1106 #861 #846 #1105 regr: b13936bd)
164- example, tests: call `WSACleanup()` for each `WSAStartup()` (94b6bad3 #1283)
165- example, tests: fix/silence `-Wformat-truncation=2` gcc warnings (744e059f)
166- hostkey: do not advertise ssh-rsa when SHA1 is disabled (82d1b8ff #1093 #1092)
167- kex: always add extension indicators to kex_algorithms (00e2a07e #1327 #1326)
168- libssh2.h: add deprecated function warnings (9839ebe5 #1289 #1260)
169- libssh2.h: add portable `LIBSSH2_SOCKET_CLOSE()` macro (28dbf016 #1278)
170- libssh2.h: use `_WIN32` for Windows detection instead of rolling our own (631e7734 #1238)
171- libssh2.pc: re-add & extend support for static-only libssh2 builds (624abe27 #1119 #1114)
172- libssh2.pc: don't put `@LIBS@` in pc file (1209c16d)
173- mac: add empty hash functions for `mac_method_hmac_aesgcm` to not crash when e.g. setting `LIBSSH2_METHOD_CRYPT_CS` (b2738391 #1321)
174- mac: handle low-level errors (f64885b6 #1297)
175- Makefile.mk: delete Windows-focused raw GNU Make build (43485579 #1204)
176- maketgz: reproducible tarballs/zip, display tarball hashes (d52fe1b4 #1357 #1359)
177- maketgz: `set -eu`, reproducibility, improve zip, add CI test (cba7f975 #1353)
178- man: improve `libssh2_userauth_publickey_from*` manpages (581b72aa #1347 #1308 #652)
179- man: fix double spaces and dash escaping (a3ffc422 #1210)
180- man: add description to `libssh2_session_get_blocking.3` (67e39091 #1185)
181- mbedtls: add workaround + FIXME to build with 3.6.0 (2e4c5ec4 #1349)
182- mbedtls: improve disabling `-Wredundant-decls` (ecec68a2 #1226 #1224)
183- mbedtls: include `version.h` for `MBEDTLS_VERSION_NUMBER` (9d7bc253 #1095 #1094)
184- mbedtls: use more `size_t` to sync up with `crypto.h` (1153ebde #1054 #879 #846 #1053)
185- md5: allow disabling old-style encrypted private keys at build-time (eb9f9de2 #1181)
186- mingw: fix printf mask for 64-bit integers (36c1e1d1 #1091 #876 #846 #1090)
187- misc: flatten `_libssh2_explicit_zero` if tree (74e74288 #1149)
188- NMakefile: delete (c515eed3 #1134 #1129)
189- openssl: fix calculating DSA public key with OpenSSL 3 (8b3c6e9d #1380)
190- openssl: initialize BIGNUMs to NULL in `gen_publickey_from_dsa` for OpenSSL 3 (f1133c75 #1320)
191- openssl: fix cppcheck found NULL dereferences (f2945905 #1304)
192- openssl: delete internal `read_openssh_private_key_from_memory()` (34aff5ff #1306)
193- openssl: use OpenSSL 3 HMAC API, add `no-deprecated` CI job (363dcbf4 #1243 #1235 #1207)
194- openssl: make a function static, add `#ifdef` comments (efee9133 #1246 #248 follow: 03092292)
195- openssl: fix DSA code to use OpenSSL 3 API (82581941 #1244 #1207)
196- openssl: fix `EC_KEY` reference with OpenSSL 3 `no-deprecated` build (487152f4 #1236 #1235 #1207)
197- openssl: use non-deprecated APIs with OpenSSL 3.x (b0ab005f #1207)
198- openssl: silence `-Wunused-value` warnings (bf285500 #1205)
199- openssl: use automatic initialization with LibreSSL 2.7.0+ (d79047c9 #1146 #302)
200- openssl: add missing check for `LIBRESSL_VERSION_NUMBER` before use (4a42f42e #1117 #1115)
201- os400: Add two recent files to the distribution (e4c65e5b #1364)
202- os400: fix shellcheck warnings in scripts (fixups) (81341e1e #1366 #1364 #1358)
203- os400: fix shellcheck warnings in scripts (c6625707 #1358)
204- os400: maintain up to date (8457c37a #1309)
205- packet: properly bounds check packet_authagent_open() (88a960a8 #1179)
206- pem: fix private keys encrypted with AES-GCM methods (e87bdefa #1133)
207- reuse: fix duplicate copyright warning (b9a4ed83)
208- reuse: comply with 3.1 spec and 2.0.0 checker (fe6239a1 #1102 #1101 #1098)
209- reuse: provide SPDX identifiers (f6aa31f4 #1084)
210- scp: fix missing cast for targets without large file support (c317e06f #1060 #1057 #1002 regr: 5db836b2)
211- session: add `libssh2_session_callback_set2()` (c0f69548 #1285)
212- session: handle EINTR from send/recv/poll/select to try again as the error is not fatal (798ed4a7 #1058 #955)
213- src: check the return value from `_libssh2_bn_*()` functions (95c824d5 #1354)
214- src: support RSA-SHA2 cert-based authentication (rsa-sha2-512_cert and rsa-sha2-256_cert) (3a6ab70d #1314)
215- src: check hash update/final success (4718ede4 #1303 #1301)
216- src: check hash init success (2ed9eb92 #1301)
217- src: add 'strict KEX' to fix CVE-2023-48795 "Terrapin Attack" (d34d9258 #1291 #1290)
218- src: disable `-Wsign-conversion` warnings, add option to re-enable (6e451669 #1284 #1257)
219- src: fix gcc 13 `-Wconversion` warning on Darwin (8cca7b77 #1209 follow: 08354e0a)
220- src: drop a redundant `#include` (1f0174d0 #1153)
221- src: improve MSVC C4701 warning fix (8b924999 #1086 #876 #1083)
222- src: bump `hash_len` to `size_t` in `LIBSSH2_HOSTKEY_METHOD` (8b917d76 #1076)
223- src: bump DSA and ECDSA sign `hash_len` to `size_t` (7b8e0225 #1055)
224- tests: drop default cygpath option `-u` (38e50aa0)
225- tests: fix shellcheck issues in `test_sshd.test` (a2ac8c55)
226- tests: sync port number type with the rest of codebase (eb996af8)
227- tests: fall back to `$LOGNAME` for username (5326a5ce #1241 #1240)
228- tests: show cmake version used in integration tests (2cd2f40e #1201)
229- tests: formatting and tidy-ups (e61987a3)
230- tests: replace FIXME with comments (1a99a86a)
231- tests: add aes256-gcm encrypted key test (802336cf #1135 #1133)
232- tests: trap signals in scripts (b2916b28 #1098)
233- tests: cast to avoid `-Wchar-subscripts` with Cygwin (43df6a46 #1081 #1080)
234- test_read: make it run without Docker (57e9d18e #1139)
235- test_sshd.test: show sshd and test connect logs on harness failure (299c2040 #1097)
236- test_sshd.test: set a safe PID directory (e8cabdcf #1089)
237- test_sshd.test: minor cleanups (d29eea1d)
238- tidy-up: fix typo found by codespell (706ec36d)
239- tidy-up: bump casts from int to long for large C99 types in printfs (2e5a8719 #1264 #1257)
240- tidy-up: `unsigned` -> `unsigned int` (b136c379)
241- tidy-up: stop using leading underscores in macro names (c6589b88 #1248)
242- tidy-up: around `stdint.h` (bfa00f1b #1212)
243- tidy-up: fix typo in `readme.vms` (a9a79e7a)
244- tidy-up: use built-in `_WIN32` macro to detect Windows (6fbc9505 #1195)
245- tidy-up: drop `www.` from `www.libssh2.org` (6e3e8839 #1172)
246- tidy-up: delete duplicate word from comment (76307435)
247- tidy-up: avoid exclamations, prefer single quotes, in outputs (003fb454 #1079)
248- TODO: disable or drop weak algos (0b4bdc85 #1261)
249- transport: check ETM on remote end when receiving (bde10825 #1332 #1331)
250- transport: fix incorrect byte offset in debug message (2388a3aa #1096)
251- userauth: avoid oob with huge interactive kbd response (f3a85cad #1337)
252- userauth: add a new structure to separate memory read and file read (63b4c20e #773)
253- userauth: check whether `*key_method` is a NULL pointer instead of `key_method` (bec57c40)
254- wincng: fix `DH_GEX_MAXGROUP` set higher than supported (48584671 #1372 #493)
255- wincng: add to ci/GHA, add `./configure` option `--enable-ecdsa-wincng` (3f98bfb0 #1368 #1315)
256- wincng: add ECDSA support for host and user authentication (3e723437 #1315)
257- wincng: prefer `ULONG`/`DWORD` over `unsigned long` (186c1d63 #1165)
258- wincng: tidy-ups (7bb669b5 #1164)
259- wolfssl: enable debug logging in wolfSSL when compiled in (76e7a68a #1310)
260
261This release would not have looked like this without help, code, reports and
262advice from friends like these:
263
264Viktor Szakats, Michael Buckley, Patrick Monnerat, Ren Mingshuai,
265Daniel Stenberg, Josef Cejka, Ryan Kelley, Will Cosgrove, Aaron Stone,
266András Fekete, Andrei Augustin, binary1248, Brian Inglis,
267concussious on github, Dan Fandrich, Haowei Hsu, Harmen Stoppels,
268Harry Mallon, Jack L, Jakob Egger, Jiwoo Park, João M. S. Silva,
269Joel Depooter, Johannes Passing, Juliusz Sosinowicz, Kai Pastor,
270Kenneth Davidson, Lyndon Brown, mike-jumper, naddy, Nicolas Mora,
271Nursan Valeyev, Paul Howarth, PewPewPew, Radek Brich, rahmanih on github,
272shubhamhii on github, Steve McIntyre, Tejaswi Kandula, Tobias Stoeckmann,
273Xi Ruoyao
274