1
0
mirror of https://github.com/golang/go synced 2024-11-23 13:50:06 -07:00

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
This commit is contained in:
Paul van Brouwershaven 2014-09-30 13:38:48 -07:00 committed by Adam Langley
parent 74b8693c54
commit e7488b2189

View 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)