Return EOF when an S/MIME part have been read.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 24 Jun 2003 17:11:44 +0000 (17:11 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 24 Jun 2003 17:11:44 +0000 (17:11 +0000)
crypto/pkcs7/pk7_mime.c

index 0480db219f412341c6c215d5a0ebab026f68a4af..1823418465cf603fa9cc1c16750c3ecb98a55d9b 100644 (file)
@@ -446,6 +446,7 @@ static int multi_split(BIO *bio, char *bound, STACK_OF(BIO) **ret)
                                first = 0;
                                if(bpart) sk_BIO_push(parts, bpart);
                                bpart = BIO_new(BIO_s_mem());
+                               BIO_set_mem_eof_return(bpart, 0);
                        } else if (eol)
                                BIO_write(bpart, "\r\n", 2);
                        eol = next_eol;