Base-64 encoding mandates to have a '\n' after every 64 bytes.
No, it doesn't. It's common practice, but it's not required.
Add BIO_FLAGS_BASE64_NO_NL, as in BIO_set_flags(your_bio_object, BIO_FLAGS_BASE64_NO_NL);
/r$
-- Rich Salz, Chief Security Architect DataPower Technology http://www.datapower.com XS40 XML Security Gateway http://www.datapower.com/products/xs40.html XML Security Overview http://www.datapower.com/xmldev/xmlsecurity.html
______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]