commit | 32db794688a5a24a23a43f2a984cecd5b3d8da58 | [log] [tgz] |
---|---|---|
author | Roland Shoemaker <rolandshoemaker@gmail.com> | Sun May 10 13:40:17 2020 -0700 |
committer | Roland Shoemaker <roland@golang.org> | Tue Aug 17 16:40:53 2021 +0000 |
tree | 15efc8d867cd58c1b79bbe0cefc1fc926da7ac35 | |
parent | 0a44fdfbc16e146f50e5fb8823fcc5ac186049b2 [diff] |
acme: fix deadlock when Client.Key is nil When methods that use POSTs are called on a acme.Client which has a nil Key field it will cause a deadlock due to an infinite loop in the code that looks up the account KID. This change adds a check for the key being nil, and errors out if that is the case. Also adds a test for this behavior. Fixes golang/go#38790 Change-Id: I65ff6bbbade7ed2d85306895904a976089730bbf Reviewed-on: https://go-review.googlesource.com/c/crypto/+/233164 Trust: Roland Shoemaker <roland@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
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.