summaryrefslogtreecommitdiffstats
path: root/crypto/pkcs7/pk7_smime.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2006-12-24 16:22:56 +0000
committerDr. Stephen Henson <steve@openssl.org>2006-12-24 16:22:56 +0000
commit11d8cdc6ad92d070dd91735511ff9616cf879bbb (patch)
treef10945f597e8bdf7beffb3bb52cfaab49d716d25 /crypto/pkcs7/pk7_smime.c
parente49978dafed3f0d77eb536f20677a1f22cb0b5a7 (diff)
Experimental streaming PKCS#7 support.
I thought it was about time I dusted this off. This stuff had been sitting on my hard drive for *ages* (2003 in fact). Hasn't been tested well and may not work properly. Nothing uses it at present which is just as well. Think of this as a traditional Christmas present which looks far more impressive in the adverts and on the box, some of the bits are missing and falls to bits if you play with it too much.
Diffstat (limited to 'crypto/pkcs7/pk7_smime.c')
-rw-r--r--crypto/pkcs7/pk7_smime.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/pkcs7/pk7_smime.c b/crypto/pkcs7/pk7_smime.c
index 718f0db0ef..8952e3989e 100644
--- a/crypto/pkcs7/pk7_smime.c
+++ b/crypto/pkcs7/pk7_smime.c
@@ -518,6 +518,9 @@ PKCS7 *PKCS7_encrypt(STACK_OF(X509) *certs, BIO *in, const EVP_CIPHER *cipher,
}
}
+ if (flags & PKCS7_STREAM)
+ return p7;
+
if (PKCS7_final(p7, in, flags))
return p7;