diff options
| author | Paul van Brouwershaven <paul@vanbrouwershaven.com> | 2014-09-30 13:38:48 -0700 |
|---|---|---|
| committer | Adam Langley <agl@golang.org> | 2014-09-30 13:38:48 -0700 |
| commit | e7488b2189c6a0628f7df45bc84c565f185af04d (patch) | |
| tree | 41eeca5a7b6b4bc3ddeab6a608755dd6acedcc48 /src | |
| parent | 74b8693c544abffbce69262b609410459d8796f8 (diff) | |
| download | go-e7488b2189c6a0628f7df45bc84c565f185af04d.tar.xz | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/crypto/x509/x509.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
