b64 = BIO_new(BIO_f_base64()); bio = BIO_push(b64, bio); BIO_set_flags(bio, BIO_FLAGS_BASE64_NO_NL);//Do not use newlines to flush buffer*length = BIO_read(bio, *buffer,strlen(b64message));//length should equal decodeLen, else something went horribly wrongBIO_free_all(bio);...
char* CryptoHandler::base64decode(unsignedchar*input,intlength) { BIO *b64, *bmem;char*buffer = (char*)malloc(length);memset(buffer,0, length); b64 = BIO_new(BIO_f_base64()); BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL); bmem =BIO_new_mem_buf(input, length); bmem = BIO_p...