> > 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)
> 

I found that I did not make the bio2 chain. I might be mixed it up
with FILE pointer
which I don't need to allocate any memory explicitly. 

I will use the BIO_set_mem_eof_return too. Thank you so much!

Yoshi
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to