]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: keep the raw Subject and Issuer.
authorAdam Langley <agl@golang.org>
Fri, 14 Oct 2011 19:06:54 +0000 (15:06 -0400)
committerAdam Langley <agl@golang.org>
Fri, 14 Oct 2011 19:06:54 +0000 (15:06 -0400)
commite74dcbeb0f3615fa7bf5732495764c324c5e42e4
tree923b33da38e3ef461a7d790d2223e0b9d5c05dad
parent37e802a7c5e3c91cc572badb99f6f15f9c30b24c
crypto/x509: keep the raw Subject and Issuer.

X509 names, like everything else X509, are ludicrously general. This
change keeps the raw version of the subject and issuer around for
matching. Since certificates use a distinguished encoding, comparing
the encoding is the same as comparing the values directly. This came
up recently when parsing the NSS built-in certificates which use the
raw subject and issuer for matching trust records to certificates.

R=bradfitz
CC=golang-dev
https://golang.org/cl/5275047
src/pkg/asn1/marshal.go
src/pkg/crypto/x509/cert_pool.go
src/pkg/crypto/x509/pkix/pkix.go
src/pkg/crypto/x509/verify_test.go
src/pkg/crypto/x509/x509.go