]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.10] crypto/x509: matching any requested EKU should be sufficient.
authorAdam Langley <agl@golang.org>
Wed, 28 Feb 2018 19:35:54 +0000 (11:35 -0800)
committerAndrew Bonventre <andybons@golang.org>
Thu, 29 Mar 2018 06:08:46 +0000 (06:08 +0000)
commitc917b3c32b2434ddf035130c36453aadf43f3008
tree2c4a362e339e71f6285550a76b4fb5460e6f6a09
parent9f7d0c968f22c066e5ade6c19135f97d1660a8be
[release-branch.go1.10] crypto/x509: matching any requested EKU should be sufficient.

The documentation was unclear here and I misremembered the behaviour and
changed it in 1.10: it used to be that matching any EKU was enough but
1.10 requires that all EKUs match.

Restore 1.9 behaviour and clarify the documentation to make it official.

Fixes #24162.

Change-Id: Ic9466cd0799cb27ec3a3a7e6c96f10c2aacc7020
Reviewed-on: https://go-review.googlesource.com/97720
Run-TryBot: Adam Langley <agl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Reviewed-on: https://go-review.googlesource.com/102790
Run-TryBot: Andrew Bonventre <andybons@golang.org>
src/crypto/x509/name_constraints_test.go
src/crypto/x509/verify.go