diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2007-04-13 18:41:52 +0200 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2007-04-13 18:41:52 +0200 |
commit | eeec060df0e26890d5e84cf5ee5bef46fd22a424 (patch) | |
tree | 49368283195fb519333a685e222861ebac54f5e4 /crypto/pkcs7/pk7_smime.c | |
parent | PKCS7_sign_add_signer() docs. (diff) | |
download | openssl-eeec060df0e26890d5e84cf5ee5bef46fd22a424.tar.xz openssl-eeec060df0e26890d5e84cf5ee5bef46fd22a424.zip |
Don't finalize signerinfo if reuse and partial both set.
Diffstat (limited to 'crypto/pkcs7/pk7_smime.c')
-rw-r--r-- | crypto/pkcs7/pk7_smime.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/pkcs7/pk7_smime.c b/crypto/pkcs7/pk7_smime.c index 64a3cc4763..39b18a4a46 100644 --- a/crypto/pkcs7/pk7_smime.c +++ b/crypto/pkcs7/pk7_smime.c @@ -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; } } |