]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: fix CreateCRL for Ed25519 CAs
authorLorenz Brun <lorenz@brun.one>
Wed, 30 Oct 2019 02:29:23 +0000 (02:29 +0000)
committerFilippo Valsorda <filippo@golang.org>
Mon, 11 Nov 2019 18:00:18 +0000 (18:00 +0000)
commitad7ce3911f4947b4cccb435b6374e3808f0062db
tree6028f2d81fe4f698d18ff19c3901fa42307a54a7
parent6375fe4b9e5656e0ac7a46752ec2a997dd62d370
crypto/x509: fix CreateCRL for Ed25519 CAs

This makes Ed25519 certificates work for CreateCRL(). This previously
failed (panic: crypto: requested hash function #0 is unavailable) because
the hash could not be skipped, but Ed25519 uses no hash.

A similar fix has been applied in a few other places when Ed25519 was added
when Ed25519 certificates were originally introduced, but was missed
here.

Change-Id: I16fcfcd53ba3bb8f773e5de972b8fedde1f6350e

Change-Id: I16fcfcd53ba3bb8f773e5de972b8fedde1f6350e
GitHub-Last-Rev: bf7f1458f850d01605c619c3f53f86649477dd4d
GitHub-Pull-Request: golang/go#35241
Reviewed-on: https://go-review.googlesource.com/c/go/+/204046
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
src/crypto/x509/x509.go
src/crypto/x509/x509_test.go