]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: rollback new CertificateRequest fields
authorFilippo Valsorda <filippo@golang.org>
Tue, 5 Jan 2021 19:52:00 +0000 (20:52 +0100)
committerFilippo Valsorda <filippo@golang.org>
Wed, 6 Jan 2021 21:24:47 +0000 (21:24 +0000)
commit4787e906cff56ae23028df12c68331745651ec9e
treeb93087e10b06c37839f1d0440a3767856d028dda
parentc9658bee93c169f6efd4654576bf8e9a920ec1de
crypto/x509: rollback new CertificateRequest fields

In general, we don't want to encourage reading them from CSRs, and
applications that really want to can parse the Extensions field.

Note that this also fixes a bug where the error of
parseKeyUsageExtension was not handled in parseCertificateRequest.

Fixes #43477
Updates #37172

Change-Id: Ia5707b0e23cecc0aed57e419a1ca25e26eea6bbe
Reviewed-on: https://go-review.googlesource.com/c/go/+/281235
Trust: Filippo Valsorda <filippo@golang.org>
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
api/go1.16.txt
doc/go1.16.html
src/crypto/x509/x509.go
src/crypto/x509/x509_test.go