diff options
author | Reinhard Tartler <siretart@tauware.de> | 2017-06-14 19:53:34 -0400 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2017-06-14 19:55:14 -0400 |
commit | e0c122119afea4c951c0c57144d26a473118c254 (patch) | |
tree | 34a02a56f9b017201dfb721ef678c711351466d6 /lib/backupclient/BackupStoreFilenameClear.h | |
parent | e0eb815b67734abd09ff41e2271630d4b2a6d760 (diff) |
Fixup botched merge
Diffstat (limited to 'lib/backupclient/BackupStoreFilenameClear.h')
-rw-r--r-- | lib/backupclient/BackupStoreFilenameClear.h | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/lib/backupclient/BackupStoreFilenameClear.h b/lib/backupclient/BackupStoreFilenameClear.h deleted file mode 100644 index d4c45701..00000000 --- a/lib/backupclient/BackupStoreFilenameClear.h +++ /dev/null @@ -1,60 +0,0 @@ -// -------------------------------------------------------------------------- -// -// File -// Name: BackupStoreFilenameClear.h -// Purpose: BackupStoreFilenames in the clear -// Created: 2003/08/26 -// -// -------------------------------------------------------------------------- - -#ifndef BACKUPSTOREFILENAMECLEAR__H -#define BACKUPSTOREFILENAMECLEAR__H - -#include "BackupStoreFilename.h" - -class CipherContext; - -// -------------------------------------------------------------------------- -// -// Class -// Name: BackupStoreFilenameClear -// Purpose: BackupStoreFilenames, handling conversion from and to the in the clear version -// Created: 2003/08/26 -// -// -------------------------------------------------------------------------- -class BackupStoreFilenameClear : public BackupStoreFilename -{ -public: - BackupStoreFilenameClear(); - BackupStoreFilenameClear(const std::string &rToEncode); - BackupStoreFilenameClear(const BackupStoreFilenameClear &rToCopy); - BackupStoreFilenameClear(const BackupStoreFilename &rToCopy); - virtual ~BackupStoreFilenameClear(); - - // Because we need to use a different allocator for this class to avoid - // nasty things happening, can't return this as a reference. Which is a - // pity. But probably not too bad. -#ifdef BACKUPSTOREFILEAME_MALLOC_ALLOC_BASE_TYPE - const std::string GetClearFilename() const; -#else - const std::string &GetClearFilename() const; -#endif - void SetClearFilename(const std::string &rToEncode); - - // Setup for encryption of filenames - static void SetBlowfishKey(const void *pKey, int KeyLength, const void *pIV, int IVLength); - static void SetEncodingMethod(int Method); - -protected: - void MakeClearAvailable() const; - virtual void EncodedFilenameChanged(); - void EncryptClear(const std::string &rToEncode, CipherContext &rCipherContext, int StoreAsEncoding); - void DecryptEncoded(CipherContext &rCipherContext) const; - -private: - mutable BackupStoreFilename_base mClearFilename; -}; - -#endif // BACKUPSTOREFILENAMECLEAR__H - - |