]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: parse all names in an RDN.
authorAdam Langley <agl@golang.org>
Mon, 10 Oct 2016 23:26:51 +0000 (16:26 -0700)
committerAdam Langley <agl@golang.org>
Tue, 11 Oct 2016 17:35:55 +0000 (17:35 +0000)
commit809a1de1ac1ccc76f7a4faf630017626f2f68231
treeeead555ad9a8459feb67bd09e0cc4eaadd31399c
parentc5368123fedba827967628943bf45ed3d1d369ac
crypto/x509: parse all names in an RDN.

The Subject and Issuer names in a certificate look like they should be a
list of key-value pairs. However, they're actually a list of lists of
key-value pairs. Previously we only looked at the first element of each
sublist and the vast majority of certificates only have one element per
sublist.

However, it's possible to have multiple elements and some 360
certificates from the “Pilot” log are so constructed.

This change causes all elements of the sublists to be processed.

Fixes #16836.

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