]> Cypherpunks repositories - gostls13.git/commitdiff
x509: Fixed ASN.1 encoding in CRL Distribution Points extension
authorPaul van Brouwershaven <paul@vanbrouwershaven.com>
Tue, 30 Sep 2014 20:38:48 +0000 (13:38 -0700)
committerAdam Langley <agl@golang.org>
Tue, 30 Sep 2014 20:38:48 +0000 (13:38 -0700)
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://golang.org/cl/143320043

src/crypto/x509/x509.go

index c347fb384dc73f5b63b39911cf1121a3c3d5e53e..6e57e913ac27a1c8ef54f74209bae36e983a55ac 100644 (file)
@@ -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)