From: Paul van Brouwershaven Date: Tue, 30 Sep 2014 20:38:48 +0000 (-0700) Subject: x509: Fixed ASN.1 encoding in CRL Distribution Points extension X-Git-Tag: go1.4beta1~227 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e7488b2189c6a0628f7df45bc84c565f185af04d;p=gostls13.git 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://golang.org/cl/143320043 --- diff --git a/src/crypto/x509/x509.go b/src/crypto/x509/x509.go index c347fb384d..6e57e913ac 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)