[Box Backup-commit] COMMIT r2249 - box/trunk/lib/backupclient
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Thu Aug 21 11:54:57 BST 2008
Author: chris
Date: 2008-08-21 11:54:57 +0100 (Thu, 21 Aug 2008)
New Revision: 2249
Modified:
box/trunk/lib/backupclient/BackupClientCryptoKeys.cpp
box/trunk/lib/backupclient/BackupClientCryptoKeys.h
Log:
Take a const std::string& for the filename rather than a const char *,
for C++ style.
Modified: box/trunk/lib/backupclient/BackupClientCryptoKeys.cpp
===================================================================
--- box/trunk/lib/backupclient/BackupClientCryptoKeys.cpp 2008-08-21 10:54:01 UTC (rev 2248)
+++ box/trunk/lib/backupclient/BackupClientCryptoKeys.cpp 2008-08-21 10:54:57 UTC (rev 2249)
@@ -28,13 +28,13 @@
// Created: 1/12/03
//
// --------------------------------------------------------------------------
-void BackupClientCryptoKeys_Setup(const char *KeyMaterialFilename)
+void BackupClientCryptoKeys_Setup(const std::string& rKeyMaterialFilename)
{
// Read in the key material
unsigned char KeyMaterial[BACKUPCRYPTOKEYS_FILE_SIZE];
// Open the file
- FileStream file(KeyMaterialFilename);
+ FileStream file(rKeyMaterialFilename);
// Read in data
if(!file.ReadFullBuffer(KeyMaterial, BACKUPCRYPTOKEYS_FILE_SIZE, 0))
{
Modified: box/trunk/lib/backupclient/BackupClientCryptoKeys.h
===================================================================
--- box/trunk/lib/backupclient/BackupClientCryptoKeys.h 2008-08-21 10:54:01 UTC (rev 2248)
+++ box/trunk/lib/backupclient/BackupClientCryptoKeys.h 2008-08-21 10:54:57 UTC (rev 2249)
@@ -49,7 +49,7 @@
#define BACKUPCRYPTOKEYS_FILE_AES_KEY_LENGTH 32
-void BackupClientCryptoKeys_Setup(const char *KeyMaterialFilename);
+void BackupClientCryptoKeys_Setup(const std::string& rKeyMaterialFilename);
#endif // BACKUPCLIENTCRYTOKEYS__H
More information about the Boxbackup-commit
mailing list