]> Cypherpunks.ru repositories - gostls13.git/commit
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)
committerAdam Langley <agl@golang.org>
Mon, 26 Mar 2018 19:42:08 +0000 (19:42 +0000)
commitdc3a92edaabf012cabd90304bac1ed8fe3bb7444
tree9ed1db836f69656883aeff2b939c3f94cb6c5b94
parent2d8181e7b5ffe685847a6bb922170c4bbe1c97f6
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>
src/crypto/x509/name_constraints_test.go
src/crypto/x509/verify.go