database64128
b53964a1ca
ssh: permit empty but non-nil HostKeyAlgorithms, KeyExchanges, Ciphers, MACs
The documentation of ClientConfig.HostKeyAlgorithms says:
If empty, a reasonable default is used.
However, if HostKeyAlgorithms is empty but non-nil, the reasonable
default won't be applied, and the SSH handshake will fail. Fix this by
changing the nil check to a length check.
While here, do the same for KeyExchanges, Ciphers, MACs in Config.
Change-Id: I1b3d2d2159f3c7d57a9a690ad04f1f6818b39a5c
Reviewed-on: https://go-review.googlesource.com/c/crypto/+/800080
Reviewed-by: Nicola Murino <nicola.murino@gmail.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Nicola Murino <nicola.murino@gmail.com>
2026-07-22 10:37:01 -07:00
..
2026-07-21 14:30:59 -07:00
2020-02-04 10:40:54 +00:00
2026-06-02 00:24:36 -07:00
2020-11-16 15:36:03 +00:00
2026-06-02 00:25:33 -07:00
2025-11-12 10:42:48 -08:00
2023-07-31 18:14:41 +00:00
2026-07-21 14:30:59 -07:00
2017-09-25 11:19:01 +00:00
2026-05-21 17:03:20 -07:00
2026-05-21 17:03:20 -07:00
2026-05-21 17:03:23 -07:00
2026-07-12 08:19:12 -07:00
2025-05-15 10:44:04 -07:00
2026-05-21 17:03:25 -07:00
2026-07-13 12:20:29 -07:00
2026-07-13 12:23:17 -07:00
2025-05-15 10:43:30 -07:00
2026-05-21 19:39:36 -07:00
2025-09-15 23:32:56 -07:00
2026-07-22 10:37:01 -07:00
2026-07-13 12:23:17 -07:00
2026-05-21 19:39:36 -07:00
2026-05-21 19:39:36 -07:00
2025-09-27 12:36:52 -07:00
2025-10-08 13:58:26 -07:00
2026-07-21 14:30:59 -07:00
2026-07-22 10:37:01 -07:00
2026-06-02 00:23:03 -07:00
2026-06-02 00:23:03 -07:00
2026-07-21 14:30:59 -07:00
2026-07-13 20:33:21 -07:00
2025-09-27 12:36:52 -07:00
2023-11-27 17:27:49 +00:00
2026-07-13 12:23:17 -07:00
2026-07-13 12:23:17 -07:00
2025-08-26 00:42:33 -07:00
2026-07-13 12:23:17 -07:00
2026-07-12 08:19:12 -07:00
2026-07-12 08:19:29 -07:00
2026-07-17 15:41:46 -07:00
2026-07-17 15:41:46 -07:00
2026-07-21 14:30:59 -07:00
2026-05-25 19:49:21 -07:00
2025-11-19 11:28:37 -08:00
2025-11-19 11:28:37 -08:00
2026-07-22 10:34:36 -07:00
2026-07-22 10:34:36 -07:00
2026-07-22 10:34:36 -07:00
2022-03-14 23:46:59 +00:00
2018-01-11 10:11:23 +00:00
2025-09-27 12:36:52 -07:00