ssh/knownhosts: skip lines that cannot be parsed A single invalid line made New fail, so a known_hosts file with an entry for an unsupported key type, such as ssh-dss, could not be loaded at all. Skip lines that cannot be parsed, as OpenSSH does. Change-Id: I908cbe90259632c12800dfb32f76e3c2f520aa58 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/850546 Reviewed-by: Filippo Valsorda <filippo@golang.org> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Junyang Shao <shaojunyang@google.com> Reviewed-by: David Chase <drchase@google.com>
This repository holds supplementary Go cryptography packages.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://go.dev/doc/contribute.
The git repository is https://go.googlesource.com/crypto.
The main issue tracker for the crypto repository is located at https://go.dev/issues. Prefix your issue with “x/crypto:” in the subject line, so it is easy to find.
Note that contributions to the cryptography package receive additional scrutiny due to their sensitive nature. Patches may take longer than normal to receive feedback.