I need a pass through BufferedTransformation for testing.

I have implemented an archiver using 5.0 crypto++, based on the cryptarc example for 
4.2.  Everything seems to work Except that when recursion directory structure I am 
getting an extra end directory marker when I extract the data.  I want to remove  the 
compressor and encryptor so that the archive is essentially plain text so that it will 
be easier to debug my additions.

the constructor I want to replace is
FileArchiver::FileArchiver(ofstream& ofsArcFile, string const& sPassphrase, string 
const&sDirectory)    
        : m_sBaseDir(sDirectory), m_nDir(0), m_nDirEnd(0), m_nFile(0), 
m_nFileContinued(0),
        m_sink(
                reinterpret_cast<BufferedTransformation*>(new AesPhmFilter( 
sPassphrase,
                        new MsgConcatenator(
                                new FileSink(ofsArcFile)), eEncrypt)))

{
}

where m_sink is an instance of ZlibCompressor and AesPhmFilter is a light weight 
filter around the AESPHM class (and now after reading about sinks and filters a bit I 
could have used StreamTransformationFilter to wrap AESPHM and not written my own, but 
that is another story).

Any way what I want to do I replace ZlibCompressor and AesphmFilter with something 
that will be a pass through to MsgConcatenator.  

Any suggestions?

Thanks,
Mark Simonton
[EMAIL PROTECTED]

Reply via email to