Never mind my question. Apparently the Base64 interpreter only accepts
data if it's newline-terminated. Sorry for the bother.
On 21-Jul-09, at 5:59 PM, Jeremy R. wrote:
Hello:
I'm trying to do something that should be fairly simple: read Base64-
encoded data in memory block A and write it in decoded form to
memory block B. I used the example here:
http://www.openssl.org/docs/crypto/BIO_f_base64.html
…as a starting point. When I try to read in-memory data, however, it
simply vanishes. When I switch to either writing data in manually,
or using a BIO pair, or using a BIO_s_mem, I can write data in
(successfully, according to the return value of BIO_write), but when
I read, it returns 0 or -1, depending on which approach I've used.
When it's -1, BIO_should_retry() and BIO_should_read() both return
true but BIO_should_write() returns false.
I don't know where to go from here. I'm an OpenSSL newbie, and I'd
appreciate any help you could offer. My Google searches haven't
turned up anything useful.
Best regards,
--
Jeremy R.
NovaWave
Solutions______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majord...@openssl.org
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majord...@openssl.org