]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: Fix parsing bug in uncommon CSR Attributes.
authorJacob H. Haven <jacob@cloudflare.com>
Thu, 26 Mar 2015 22:05:09 +0000 (15:05 -0700)
committerAdam Langley <agl@golang.org>
Fri, 3 Apr 2015 00:28:30 +0000 (00:28 +0000)
commit88399b2e4662ad5a8ca8dc50c5d60fbe42d86396
treec10004eb539515ddcf9c97eed7b048e177ff871a
parent3a9024b498214b12304c22cdbb7a07c26c7a787e
crypto/x509: Fix parsing bug in uncommon CSR Attributes.

A CSR containing challengePassword or unstructuredName Attributes
(included in default OpenSSL prompts) would break ASN.1 parsing.
This updates the parsing structures to allow but then ignore these
fields.

See this CFSSL issue: https://github.com/cloudflare/cfssl/issues/115

Change-Id: I26a3bf1794589d27e6e763da88ae32276f0170c7
Reviewed-on: https://go-review.googlesource.com/8160
Reviewed-by: Adam Langley <agl@golang.org>
src/crypto/x509/x509.go
src/crypto/x509/x509_test.go