pkcs7: deleted a line by mistake #294

This commit is contained in:
Sun Yimin 2025-01-14 16:52:15 +08:00 committed by GitHub
parent bef7f5421e
commit 8331b37e37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -421,6 +421,7 @@ func testSignDigest(t *testing.T, isSM bool, content []byte, sigalgs []x509.Sign
if len(p7.Content) > 0 {
t.Errorf("Content should be empty")
}
p7.Content = digest
if err := p7.VerifyAsDigestWithChain(truststore); err != nil {
t.Errorf("test %s/%s/%s: cannot verify signed data: %s", sigalgroot, sigalginter, sigalgsigner, err)
}