blautenb 2003/10/25 03:51:22
Modified: c/src/tools/cipher cipher.cpp
Log:
Fix bugs in *NIX build
Revision Changes Path
1.8 +5 -1 xml-security/c/src/tools/cipher/cipher.cpp
Index: cipher.cpp
===================================================================
RCS file: /home/cvs/xml-security/c/src/tools/cipher/cipher.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- cipher.cpp 25 Oct 2003 10:26:47 -0000 1.7
+++ cipher.cpp 25 Oct 2003 10:51:22 -0000 1.8
@@ -693,7 +693,11 @@
if (encryptFileAsData) {
// Create a BinInputStream
+#if defined(XSEC_XERCES_REQUIRES_MEMMGR)
BinFileInputStream * is = new
BinFileInputStream(filename, XMLPlatformUtils::fgMemoryManager);
+#else
+ BinFileInputStream * is = new
BinFileInputStream(filename);
+#endif
xenc = cipher->encryptBinInputStream(is,
keyAlg);
// Replace the document element