summaryrefslogtreecommitdiff
path: root/src/crypto
diff options
context:
space:
mode:
authorPaul van Brouwershaven <paul@vanbrouwershaven.com>2014-09-30 13:38:48 -0700
committerPaul van Brouwershaven <paul@vanbrouwershaven.com>2014-09-30 13:38:48 -0700
commit13cbdf847272f332d69c908eead55faf7a3a5df7 (patch)
tree08f754a2b2e43a3f919a54e74ba880100477a836 /src/crypto
parent74a642c5aad99f6d9f5c041eb2b14fac96eb1732 (diff)
downloadgo-13cbdf847272f332d69c908eead55faf7a3a5df7.tar.gz
x509: Fixed ASN.1 encoding in CRL Distribution Points extension
The ASN.1 encoding of the CRL Distribution Points extension showed an invalid false 'IsCompound' which caused a display problem in the Windows certificate viewer. LGTM=agl R=agl CC=golang-codereviews https://codereview.appspot.com/143320043 Committer: Adam Langley <agl@golang.org>
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/x509/x509.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/x509/x509.go b/src/crypto/x509/x509.go
index c347fb384..6e57e913a 100644
--- a/src/crypto/x509/x509.go
+++ b/src/crypto/x509/x509.go
@@ -1328,7 +1328,7 @@ func buildExtensions(template *Certificate) (ret []pkix.Extension, err error) {
dp := distributionPoint{
DistributionPoint: distributionPointName{
- FullName: asn1.RawValue{Tag: 0, Class: 2, Bytes: rawFullName},
+ FullName: asn1.RawValue{Tag: 0, Class: 2, IsCompound: true, Bytes: rawFullName},
},
}
crlDp = append(crlDp, dp)