Skip to content

Commit

Permalink
fix value for signed data version in ts response
Browse files Browse the repository at this point in the history
Signed-off-by: Brian DeHamer <[email protected]>
  • Loading branch information
bdehamer committed Dec 17, 2023
1 parent 6877345 commit 00f95b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions timestamp.go
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@ func (t *Timestamp) generateSignedData(tstInfo []byte, signer crypto.Signer, cer
}
signedData.SetDigestAlgorithm(alg)
signedData.SetContentType(asn1.ObjectIdentifier{1, 2, 840, 113549, 1, 9, 16, 1, 4})
signedData.GetSignedData().Version = 3

signingCertV2Bytes, err := t.populateSigningCertificateV2Ext(certificate)
if err != nil {
Expand Down

0 comments on commit 00f95b9

Please sign in to comment.