ssh: fix data race in the doClientServerAuth test helper The helper returned the auth errors collected via AuthLogCallback without waiting for the server goroutine that appends to them. Close the client side of the connection on handshake failure, to unblock a server still reading from it, and join the server goroutine before returning. Change-Id: Ibe8c3b236491769f3433f7457d4f2b9a07a65be0 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/797043 Reviewed-by: Junyang Shao <shaojunyang@google.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: 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.