> I'm not sure quite what you mean here. bio_b64 by default > adds \n linebreaks every 64 chars when encoding (output)
I mean if try to decode, it stops 15 bytes in. If I read the original file, and print out byte 15, it's a \n. I tried using BIO_FLAGS_BASE64_NO_NL, which then failes on encode. If I use it only on decode it just goes into an infinte loop of some kind. I'm thinking openssl might not be the most appropriate library for encoding/decoding files, as it functions fine for simple strings, but I'm having no luck with files (the file in question is around 5000 bytes but could easily be 4 times that size). R. Marc ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org