]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: check EKUs like 1.9.
authorAdam Langley <agl@golang.org>
Wed, 16 May 2018 21:35:23 +0000 (14:35 -0700)
committerFilippo Valsorda <filippo@golang.org>
Mon, 21 May 2018 22:00:36 +0000 (22:00 +0000)
commit7d61ad25f8b10c0a656ef709fb30c08f5974594b
tree4090af48785b82f393fcdd91775776011a486f4c
parentc1a068012c67dfc794c0ecfd7d77db451d2cadac
crypto/x509: check EKUs like 1.9.

This change brings back the EKU checking from 1.9. In 1.10, we checked
EKU nesting independent of the requested EKUs so that, after verifying a
certifciate, one could inspect the EKUs in the leaf and trust them.

That, however, was too optimistic. I had misunderstood that the PKI was
/currently/ clean enough to require that, rather than it being
desirable. Go generally does not push the envelope on these sorts of
things and lets the browsers clear the path first.

Fixes #24590

Change-Id: I18c070478e3bbb6468800ae461c207af9e954949
Reviewed-on: https://go-review.googlesource.com/113475
Reviewed-by: Filippo Valsorda <filippo@golang.org>
src/crypto/x509/name_constraints_test.go
src/crypto/x509/verify.go