Tuesday, November 25, 2008

"man BIO_f_base64" error on Mac OS X

openssl version: OpenSSL 0.9.7l 28 Sep 2006
os: Darwin Kernel Version 9.5.0

Second example on man page has:



while((inlen = BIO_read(bio, inbuf, 512) > 0)
BIO_write(bio_out, inbuf, inlen);



should be:



while((inlen = BIO_read(bio, inbuf, 512)) > 0)
BIO_write(bio_out, inbuf, inlen);