]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: introduce ErrInsecureAlgorithm for insecure algorithms
authorRuss Cox <rsc@golang.org>
Thu, 3 Dec 2015 19:36:45 +0000 (14:36 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 3 Dec 2015 20:02:09 +0000 (20:02 +0000)
commit606d9a7e18c951bb64ea460597894558ff3808c1
tree71e3ea93a740f6b7b0084e102bf80f723cd652b2
parenta778ac5d76c47f6cc88846d58263c63ae8eaec86
crypto/x509: introduce ErrInsecureAlgorithm for insecure algorithms

Until now we've used ErrUnknownAlgorithm but that's a bit confusing
when it is returned for obviously-known things like MD5.

Fixes #10431.

Change-Id: Ief8a8ef46e5b99bd4fd18e1acd7ae398a484bac3
Reviewed-on: https://go-review.googlesource.com/17380
Reviewed-by: Adam Langley <agl@golang.org>
src/crypto/x509/x509.go
src/crypto/x509/x509_test.go