equal
deleted
inserted
replaced
258 BIO* bmem = BIO_new_mem_buf((void*)pIn, inLen); |
258 BIO* bmem = BIO_new_mem_buf((void*)pIn, inLen); |
259 |
259 |
260 // push a Base64 filter so that reading from buffer decodes it |
260 // push a Base64 filter so that reading from buffer decodes it |
261 BIO *bioCmd = BIO_new(BIO_f_base64()); |
261 BIO *bioCmd = BIO_new(BIO_f_base64()); |
262 // we don't want newlines |
262 // we don't want newlines |
263 BIO_set_flags(bioCmd, BIO_FLAGS_BASE64_NO_NL); |
263 if(inLen<50) |
|
264 BIO_set_flags(bioCmd, BIO_FLAGS_BASE64_NO_NL); |
264 bmem = BIO_push(bioCmd, bmem); |
265 bmem = BIO_push(bioCmd, bmem); |
265 |
266 |
266 int finalLen = BIO_read(bmem, (void*)pOut, outLen); |
267 int finalLen = BIO_read(bmem, (void*)pOut, outLen); |
267 |
268 |
268 aDecodeData.assign(pOut, pOut+finalLen); |
269 aDecodeData.assign(pOut, pOut+finalLen); |