]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: don't reject certs with critical policy extensions.
authorAdam Langley <agl@golang.org>
Mon, 23 Feb 2015 22:27:50 +0000 (14:27 -0800)
committerAdam Langley <agl@golang.org>
Tue, 24 Feb 2015 19:36:52 +0000 (19:36 +0000)
commitc2317db2f9bf9f097f0bc297004a8f581b944206
treeb2629fe7ae0db4c935064b72038b08fdbd84cd15
parentd9859ad40438cc27415ec294e9a06bb58fa24e9a
crypto/x509: don't reject certs with critical policy extensions.

There was a missing continue that caused certificates with critical
certificate-policy extensions to be rejected. Additionally, that code
structure in general was prone to exactly that bug so I changed it
around to hopefully be more robust in the future.

Fixes #9964.

Change-Id: I58fc6ef3a84c1bd292a35b8b700f44ef312ec1c1
Reviewed-on: https://go-review.googlesource.com/5670
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/crypto/x509/x509.go
src/crypto/x509/x509_test.go