From e7488b2189c6a0628f7df45bc84c565f185af04d Mon Sep 17 00:00:00 2001 From: Paul van Brouwershaven Date: Tue, 30 Sep 2014 13:38:48 -0700 Subject: [PATCH] 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 --- src/crypto/x509/x509.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.48.1