On Fri, Nov 21, 2008, ThanhTrung Do wrote:

> > The reason for that is to detect I/O errors in the stream.
> > 
> > The only reason I can think of for different behaviour is
> > if you have a memory
> > BIO:
> > 
> > http://www.openssl.org/support/faq.html#PROG15
> > 
> Thanks for your quick reply.
> 
> Yes, I'm using memory BIO, I tried to call BIO_set_mem_eof_return(), but got 
> the same error. Here is what I tried in my verifying routing:
> 
> ...
>         BIO_set_mem_eof_return(indata, 0);
>         if (PKCS7_verify(p7,certs,NULL,indata,out,flags)){
> ...
> 
> 
> Did I miss anything?
> 

Ah there's a bug in the handling of the SMIME_TEXT flag which was only
apparent when error checking was performed on the I/O functions. I've just
committed a fix to CVS. It is:

http://cvs.openssl.org/chngview?cn=17654

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to