summaryrefslogtreecommitdiff
path: root/lib/backupstore/BackupStoreFilenameClear.h
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2011-04-26 18:48:00 +0000
committerChris Wilson <chris+github@qwirx.com>2011-04-26 18:48:00 +0000
commit35bdbe3c4e42d4dfa1a5f8960ce9598dc4fc37b9 (patch)
tree8a785617ca7aaaf4a24a637f4cb481289637a3f1 /lib/backupstore/BackupStoreFilenameClear.h
parent1fe4e9308b8f50dbe70cc69bd500eb829a11b460 (diff)
Add a method to BackupStoreFilenameClear to get the clear filename only if
it's available or crypto has been configured to decrypt it. This allows client and server to share the same definition of protocol objects that use Filenames, instead of using BackupStoreFilename on the server and BackupStoreFilenameClear on the client.
Diffstat (limited to 'lib/backupstore/BackupStoreFilenameClear.h')
-rw-r--r--lib/backupstore/BackupStoreFilenameClear.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/backupstore/BackupStoreFilenameClear.h b/lib/backupstore/BackupStoreFilenameClear.h
index d4c45701..595d1158 100644
--- a/lib/backupstore/BackupStoreFilenameClear.h
+++ b/lib/backupstore/BackupStoreFilenameClear.h
@@ -38,6 +38,7 @@ public:
const std::string GetClearFilename() const;
#else
const std::string &GetClearFilename() const;
+ const std::string &GetClearFilenameIfPossible(const std::string& alternative) const;
#endif
void SetClearFilename(const std::string &rToEncode);