commit | 75b288015ac94e66e3d6715fb68a9b41bf046ec2 | [log] [tgz] |
---|---|---|
author | Julian Kornberger <[email protected]> | Mon Jun 22 20:02:02 2020 +0000 |
committer | Han-Wen Nienhuys <[email protected]> | Mon Jun 22 21:36:23 2020 +0000 |
tree | 4bc4d2400014aa7fc204a1ab115e0279d433b420 | |
parent | 70a84ac30bf957c7df57edd1935d2081871515e1 [diff] |
ssh: Make error message deterministic By using a slice instead of a map for tried authentication methods the order is always the same. Small slices are also faster than maps. Before the change sometimes I get the error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain and sometimes: ssh: handshake failed: ssh: unable to authenticate, attempted methods [publickey none], no supported methods remain Change-Id: I06507d57e9eef497ff05bce088d52607e69dde3e GitHub-Last-Rev: 3a46aae4c6e3e5f52ca4b04384b3cc4efc039aa6 GitHub-Pull-Request: golang/crypto#142 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/239171 Reviewed-by: Han-Wen Nienhuys <[email protected]> Run-TryBot: Han-Wen Nienhuys <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
This repository holds supplementary Go cryptography libraries.
The easiest way to install is to run go get -u golang.org/x/crypto/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/crypto
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the crypto repository is located at https://github.com/golang/go/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.