mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
Don't finalize signerinfo if reuse and partial both set.
This commit is contained in:
parent
0efb7b1eea
commit
eeec060df0
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user