mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 20:26:19 +08:00
pkcs7: deleted a line by mistake #294
This commit is contained in:
parent
bef7f5421e
commit
8331b37e37
@ -421,6 +421,7 @@ func testSignDigest(t *testing.T, isSM bool, content []byte, sigalgs []x509.Sign
|
|||||||
if len(p7.Content) > 0 {
|
if len(p7.Content) > 0 {
|
||||||
t.Errorf("Content should be empty")
|
t.Errorf("Content should be empty")
|
||||||
}
|
}
|
||||||
|
p7.Content = digest
|
||||||
if err := p7.VerifyAsDigestWithChain(truststore); err != nil {
|
if err := p7.VerifyAsDigestWithChain(truststore); err != nil {
|
||||||
t.Errorf("test %s/%s/%s: cannot verify signed data: %s", sigalgroot, sigalginter, sigalgsigner, err)
|
t.Errorf("test %s/%s/%s: cannot verify signed data: %s", sigalgroot, sigalginter, sigalgsigner, err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user