diff options
Diffstat (limited to 'src/IOFileClass')
| -rw-r--r-- | src/IOFileClass/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | src/IOFileClass/FileManIOFile.cpp | 4 | ||||
| -rw-r--r-- | src/IOFileClass/FileManIOFile.hpp | 4 |
3 files changed, 5 insertions, 4 deletions
diff --git a/src/IOFileClass/CMakeLists.txt b/src/IOFileClass/CMakeLists.txt new file mode 100644 index 0000000..af1ec84 --- /dev/null +++ b/src/IOFileClass/CMakeLists.txt @@ -0,0 +1 @@ +add_library(IOFileClass ./FileManIOFile.cpp) diff --git a/src/IOFileClass/FileManIOFile.cpp b/src/IOFileClass/FileManIOFile.cpp index ea49201..3b45b0b 100644 --- a/src/IOFileClass/FileManIOFile.cpp +++ b/src/IOFileClass/FileManIOFile.cpp @@ -35,7 +35,7 @@ void FileManIOFile::read(std::string key){ this->data.clear(); //Open file - file.open (this->filename, std::ios::in | std::ios::binary); + file.open ((this->filename).c_str(), std::ios::in | std::ios::binary); //Get MD5 of decrypted data byte fileMD5[16]; @@ -124,7 +124,7 @@ void FileManIOFile::writeRoutine(std::string data, std::string dataEncrypted){ std::ofstream file; //Open it - file.open(this->filename, std::ios::out | std::ios::binary); + file.open((this->filename).c_str(), std::ios::out | std::ios::binary); //Write MD5 on 16 first bytes file.write((char *) digest,sizeof(digest)); diff --git a/src/IOFileClass/FileManIOFile.hpp b/src/IOFileClass/FileManIOFile.hpp index 221cf13..a1595ec 100644 --- a/src/IOFileClass/FileManIOFile.hpp +++ b/src/IOFileClass/FileManIOFile.hpp @@ -20,8 +20,8 @@ //----- class ----- -#include "HASHCrypt.hpp" -#include "AESCrypt.hpp" +#include "../CryptClass/HASHCrypt.hpp" +#include "../CryptClass/AESCrypt.hpp" |
