]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: reject intermediates with unknown critical extensions.
authorAdam Langley <agl@golang.org>
Fri, 6 Oct 2017 19:46:22 +0000 (12:46 -0700)
committerAdam Langley <agl@golang.org>
Tue, 10 Oct 2017 15:49:01 +0000 (15:49 +0000)
commit755742399490d3e25239f504688f6b2e280366e9
treee3d9a0e2496de89a54bef91638ed71e21318c436
parent6f3e5e637c6c26d1d24e20e96b86ecd27a7ecabc
crypto/x509: reject intermediates with unknown critical extensions.

In https://golang.org/cl/9390 I messed up and put the critical extension
test in the wrong function. Thus it only triggered for leaf certificates
and not for intermediates or roots.

In practice, this is not expected to have a security impact in the web
PKI.

Change-Id: I4f2464ef2fb71b5865389901f293062ba1327702
Reviewed-on: https://go-review.googlesource.com/69294
Run-TryBot: Adam Langley <agl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/crypto/x509/verify.go
src/crypto/x509/verify_test.go
src/crypto/x509/x509_test.go