I'm trying to decode base64-encoded string with openssl. However, it works only 4 times out of 5.
Decoded string should always be 64 chars long. BIO_read() always returns 64. However, sometimes returned buffer is shorter than 64!
Any ideas what is wrong? How can i always get the correct string?