]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.8] crypto/x509: reject intermediates with unknown critical extens...
authorAdam Langley <agl@golang.org>
Fri, 6 Oct 2017 19:46:22 +0000 (12:46 -0700)
committerRuss Cox <rsc@golang.org>
Fri, 20 Oct 2017 16:41:29 +0000 (12:41 -0400)
commitbc7fb45f5a36c3bd7b81b9c6bf039f1ceec589e2
tree822a4bfc0d6d35c30670272eec682c360dffd367
parent0c629da1b350817aceda770f537f427133c0bcc2
[release-branch.go1.8] 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.

[Merge conflicts resolved in verify_test.go]

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