On Sat, Jan 08, 2005, Yosuke Yamamoto wrote:

> I am a newbie to OpenSSL and wondering if
> anyone can help me. 
> 
> I am trying to use BIO_f_base64 but it does not
> work for instance in the following code. 
> The second BIO_read, which is supposed to decode
> the base64 encoded string, always returns nothing,
> or "".
> 
> Am I doing something wrong?
> 

After all data has been written to the memory BIO you need to set it to return
EOF after all data has been read from it.

You can do this with BIO_set_mem_eof_return(x, 0)

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

Reply via email to