Re: base64 decoding using an s_mem chain

2009-01-11 Thread Ger Hobbelt
Frans, The mistake in your original code is largely due to the BIO_set_mem_eof_return(mem, 0); call at the start as that one prevents the bio chain from signaling 'should retry' upon error conditions (such as BIO_mem becoming empty, due to BIO_read pulling the data out of it). Instead, things

Re: base64 decoding using an s_mem chain

2009-01-01 Thread Michael S. Zick
On Thu January 1 2009, Frank B. Brokken wrote: > Hi Mike, > > Thanks for your postings in reply to my base64 decoding problem. I must admit > that I saw your first posting only after sending out the reply to William, so > let's correct that here :-) > > In your last posting you wrote: > > > Are

Re: base64 decoding using an s_mem chain

2009-01-01 Thread Frank B. Brokken
Hi Mike, Thanks for your postings in reply to my base64 decoding problem. I must admit that I saw your first posting only after sending out the reply to William, so let's correct that here :-) In your last posting you wrote: > Are you stripping the bytes that might appear in the stream > that do

Re: base64 decoding using an s_mem chain

2008-12-31 Thread Michael S. Zick
On Wed December 31 2008, Frank B. Brokken wrote: > Hi William, > > Thanks for your reply. I followed your suggestion and changed the buffer size > to 480: where the original program shows `500' it now has > `480'. Unfortunately, after uncommenting the `Doesn't work' section the > problem remains.

Re: base64 decoding using an s_mem chain

2008-12-31 Thread Frank B. Brokken
Hi William, Thanks for your reply. I followed your suggestion and changed the buffer size to 480: where the original program shows `500' it now has `480'. Unfortunately, after uncommenting the `Doesn't work' section the problem remains. Only the first block is decoded. Since 480 clearly fits the r

RE: base64 decoding using an s_mem chain

2008-12-30 Thread William Bai
3:11 AM To: openssl-users@openssl.org Subject: base64 decoding using an s_mem chain Hi List-members, The following problem has (in some form) popped up on this list repeatedly, but after having browsed the archives until the beginning of this century I didn't encounter (or simply missed?) a

Re: base64 decoding using an s_mem chain

2008-12-30 Thread Michael S. Zick
On Tue December 30 2008, Frank B. Brokken wrote: > Hi List-members, > > The following problem has (in some form) popped up on this list repeatedly, > but after having browsed the archives until the beginning of this century I > didn't encounter (or simply missed?) a solution for my current problem

base64 decoding using an s_mem chain

2008-12-30 Thread Frank B. Brokken
Hi List-members, The following problem has (in some form) popped up on this list repeatedly, but after having browsed the archives until the beginning of this century I didn't encounter (or simply missed?) a solution for my current problem, hence the posting. For some time now I'm trying to decod