diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2006-07-09 12:07:22 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2006-07-09 12:07:22 +0000 |
commit | eb499b2854a56fbe4e512cea78a31e2014bba3e3 (patch) | |
tree | 0ca56e8efae837052057e73f98eb64c6bfd1a65a /crypto/pkcs7 | |
parent | 65a82ef6d7c726e8861833937f533770bfe72fca (diff) |
Oops...
Diffstat (limited to 'crypto/pkcs7')
-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 d192ef3191..dc835e5b8a 100644 --- a/crypto/pkcs7/pk7_smime.c +++ b/crypto/pkcs7/pk7_smime.c @@ -127,10 +127,11 @@ PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, } } + if(flags & PKCS7_DETACHED)PKCS7_set_detached(p7, 1); + if (flags & PKCS7_STREAM) return p7; - if(flags & PKCS7_DETACHED)PKCS7_set_detached(p7, 1); if (!(p7bio = PKCS7_dataInit(p7, NULL))) { PKCS7err(PKCS7_F_PKCS7_SIGN,ERR_R_MALLOC_FAILURE); |