From 11d8cdc6ad92d070dd91735511ff9616cf879bbb Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sun, 24 Dec 2006 16:22:56 +0000 Subject: 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. --- crypto/pkcs7/pk7_smime.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crypto/pkcs7/pk7_smime.c') 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; -- cgit v1.2.3