zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #24638
[Merge] lp:~zorba-coders/zorba/new-base64-api-read-pdf into lp:zorba/read-pdf-module
Paul J. Lucas has proposed merging lp:~zorba-coders/zorba/new-base64-api-read-pdf into lp:zorba/read-pdf-module.
Commit message:
New Base64 API.
Requested reviews:
Paul J. Lucas (paul-lucas)
For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/new-base64-api-read-pdf/+merge/177960
New Base64 API.
--
https://code.launchpad.net/~zorba-coders/zorba/new-base64-api-read-pdf/+merge/177960
Your team Zorba Coders is subscribed to branch lp:zorba/read-pdf-module.
=== modified file 'src/read-pdf.xq.src/read-pdf.cpp'
--- src/read-pdf.xq.src/read-pdf.cpp 2013-06-21 04:26:05 +0000
+++ src/read-pdf.xq.src/read-pdf.cpp 2013-07-31 22:22:31 +0000
@@ -392,7 +392,7 @@
{
String lTmpEncoded(lMsg, lSize);
// lTmpDecodedBuf is used to make sure lMsg is still alive during HMAC_Update
- lTmpDecodedBuf = base64::decode(lTmpEncoded);
+ base64::decode(lMsg, lSize, &lTmpDecodedBuf);
lMsg = lTmpDecodedBuf.c_str();
lSize = lTmpDecodedBuf.size();
}
@@ -595,9 +595,8 @@
const char* lMsg = lItem.getBase64BinaryValue(lSize);
if (lItem.isEncoded())
{
- String lTmpEncoded(lMsg, lSize);
// lTmpDecodedBuf is used to make sure lMsg is still alive during HMAC_Update
- lTmpDecodedBuf = base64::decode(lTmpEncoded);
+ base64::decode(lMsg, lSize, &lTmpDecodedBuf);
lMsg = lTmpDecodedBuf.c_str();
lSize = lTmpDecodedBuf.size();
}
Follow ups