This works for me:
void base64Decode(unsigned char* pIn, int inLen, unsigned char* pOut,
int& outLen)
{
// create a memory buffer containing base64 encoded data
BIO* bmem = BIO_new_mem_buf((void*)pIn, inLen);
// push a Base64 filter so that reading from buffer decodes it
HI all,
I have a working example of Encoding base64 using the BIO methods but
decrypting a string is being somewhat problematic. The code in the man
page for decoding does not work either as the stdin new_fp does not hand
off / stop listening for input.
The openssl version is 0.9.8i
If any