Update from HEAD.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 21 Nov 2008 18:18:28 +0000 (18:18 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 21 Nov 2008 18:18:28 +0000 (18:18 +0000)
crypto/cms/cms_smime.c
crypto/pkcs7/pk7_smime.c

index b35d28d411a3f77d6fb22626262b03cb33c7e769..b9463f9abbca5724b277a8efd662fcf651d9adce 100644 (file)
@@ -68,7 +68,10 @@ static int cms_copy_content(BIO *out, BIO *in, unsigned int flags)
        if (out == NULL)
                tmpout = BIO_new(BIO_s_null());
        else if (flags & CMS_TEXT)
+               {
                tmpout = BIO_new(BIO_s_mem());
+               BIO_set_mem_eof_return(tmpout, 0);
+               }
        else
                tmpout = out;
 
index a6b13517fecb79f90a6237e4417cb812ca2c4ff7..c34db1d6fedfcd7ea00fb89c5f6617df538fcdc8 100644 (file)
@@ -282,6 +282,7 @@ int PKCS7_verify(PKCS7 *p7, STACK_OF(X509) *certs, X509_STORE *store,
                        PKCS7err(PKCS7_F_PKCS7_VERIFY,ERR_R_MALLOC_FAILURE);
                        goto err;
                }
+               BIO_set_mem_eof_return(tmpout, 0);
        } else tmpout = out;
 
        /* We now have to 'read' from p7bio to calculate digests etc. */