提交 eeec060d 编写于 作者: D Dr. Stephen Henson

Don't finalize signerinfo if reuse and partial both set.

上级 0efb7b1e
......@@ -216,7 +216,8 @@ PKCS7_SIGNER_INFO *PKCS7_sign_add_signer(PKCS7 *p7, X509 *signcert,
{
if (!pkcs7_copy_existing_digest(p7, si))
goto err;
if (!PKCS7_SIGNER_INFO_sign(si))
if (!(flags & PKCS7_PARTIAL) &&
!PKCS7_SIGNER_INFO_sign(si))
goto err;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册