From e0eb43a13b53e0be60d68720920c015f89cf4556 Mon Sep 17 00:00:00 2001 From: Cedric Staub Date: Tue, 9 May 2017 15:09:48 -0700 Subject: [PATCH] Fix bug in PKCS#7 certificate parser --- pkcs7/pkcs7.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkcs7/pkcs7.go b/pkcs7/pkcs7.go index 1088cb0..217db46 100644 --- a/pkcs7/pkcs7.go +++ b/pkcs7/pkcs7.go @@ -36,7 +36,7 @@ type SignedDataEnvelope struct { // Refer to RFC 2315, Section 9.1 for definition of this type. type SignedData struct { Version int - DigestAlgorithms []asn1.ObjectIdentifier `asn1:"set"` + DigestAlgorithms []asn1.RawValue `asn1:"set"` ContentInfo asn1.RawValue Certificates []asn1.RawValue `asn1:"tag:0,optional,set"` RevocationLists []asn1.RawValue `asn1:"tag:1,optional,set"`