]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: don't fail to parse addition elements in GeneralSubtree.
authorAdam Langley <agl@golang.org>
Mon, 13 Nov 2017 18:56:54 +0000 (10:56 -0800)
committerAdam Langley <agl@golang.org>
Fri, 17 Nov 2017 18:52:31 +0000 (18:52 +0000)
commit5a22637cf7014fe5c9722e130f27506466db7b84
tree575f625383176ea54560a3f1163cf8ca4e93f8d8
parentac8a70d20960bb8bda2b7523281b5b3f83334063
crypto/x509: don't fail to parse addition elements in GeneralSubtree.

The GeneralSubtree structure can have additional elements after the name
(minimum and maximum, which are unused). Previously these fields, if
present, would cause a parse error. This change allows trailing data in
the GeneralSubtrees structure.

Change-Id: I6bfb11ec355fa6812810a090c092a5ee0fdeddc3
Reviewed-on: https://go-review.googlesource.com/77333
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/crypto/x509/x509.go
src/crypto/x509/x509_test.go