Skip to content

Commit

Permalink
Fix detached data content type
Browse files Browse the repository at this point in the history
The content type should be oidData.

Fixes #24
  • Loading branch information
fullsailor committed Apr 22, 2018
1 parent cddbb99 commit ae22642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkcs7.go
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ func (sd *SignedData) AddCertificate(cert *x509.Certificate) {
// Detach removes content from the signed data struct to make it a detached signature.
// This must be called right before Finish()
func (sd *SignedData) Detach() {
sd.sd.ContentInfo = contentInfo{ContentType: oidSignedData}
sd.sd.ContentInfo = contentInfo{ContentType: oidData}
}

// Finish marshals the content and its signers
Expand Down

0 comments on commit ae22642

Please sign in to comment.