I'm just learning about crypto++, so my question is probably elementary
in nature. Anyways, I was looking at the sample code in FAQ section:
void EncryptFile(const char *filein, const char *fileout, const char
*passPhrase) {
FileSource f(filein, true, new DefaultEncryptor(passPhrase,
new FileSink(fileout)));
}
The question I have is with the "new" objects being created (in this
case FileSink and DefaultEcnryptor). How does these gets deleted?
Understand that the sample code may be just for illustration only, but looks
like this is a bug. There are other samples with HexEncoder and so on.
Thanks,
+ Vasu
Do you Yahoo!?
Free online calendar with sync to Outlook(TM).
- Re: Sample code: Minor Bug? Vasudevan Sambasivam
- Re: Sample code: Minor Bug? Pat Deegan
- Re: Sample code: Minor Bug? Vasudevan Sambasivam
- RE: Sample code: Minor Bug? Walton, Jeffrey
