X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=blobdiff_plain;f=xmltooling%2Fencryption%2Fimpl%2FDecrypter.cpp;h=b29ca1328886a1bf6cd7b219e90cc545190af703;hp=a87fa89c96b14ac3500263ce339a028a8860071f;hb=a5e86d37cf40004e6a43a21ab67d26695fa8619c;hpb=7a76ad29ed3e8fea449036d0923986f61408bf1f diff --git a/xmltooling/encryption/impl/Decrypter.cpp b/xmltooling/encryption/impl/Decrypter.cpp index a87fa89..b29ca13 100644 --- a/xmltooling/encryption/impl/Decrypter.cpp +++ b/xmltooling/encryption/impl/Decrypter.cpp @@ -39,6 +39,7 @@ using namespace xmlencryption; using namespace xmlsignature; using namespace xmltooling; +using namespace xercesc; using namespace std; Decrypter::~Decrypter() @@ -164,7 +165,7 @@ void Decrypter::decryptData(ostream& out, const EncryptedData& encryptedData, XS auto_ptr in(m_cipher->decryptToBinInputStream(encryptedData.getDOM())); XMLByte buf[8192]; - unsigned int count = in->readBytes(buf, sizeof(buf)); + xsecsize_t count = in->readBytes(buf, sizeof(buf)); while (count > 0) out.write(reinterpret_cast(buf),count); }