diff --git a/GCryptLib/include/GCrypt/Key.h b/GCryptLib/include/GCrypt/Key.h index d0133da..36999ec 100644 --- a/GCryptLib/include/GCrypt/Key.h +++ b/GCryptLib/include/GCrypt/Key.h @@ -21,7 +21,7 @@ namespace Leonetienne::GCrypt { static Key LoadFromFile(const std::string& path); //! Will save a keyfile - void WriteToFile(const std::string& path); + void WriteToFile(const std::string& path) const; Key(); Key(const Key& k); diff --git a/GCryptLib/include/GCrypt/Version.h b/GCryptLib/include/GCrypt/Version.h index a5623c2..9063e14 100644 --- a/GCryptLib/include/GCrypt/Version.h +++ b/GCryptLib/include/GCrypt/Version.h @@ -1,7 +1,7 @@ #ifndef GCRYPT_VERSION_H #define GCRYPT_VERSION_H -#define GCRYPT_VERSION 0.235 +#define GCRYPT_VERSION 0.236 #endif diff --git a/GCryptLib/src/Key.cpp b/GCryptLib/src/Key.cpp index 0dc23b1..20f1e04 100644 --- a/GCryptLib/src/Key.cpp +++ b/GCryptLib/src/Key.cpp @@ -50,7 +50,7 @@ namespace Leonetienne::GCrypt { return key; } - void Key::WriteToFile(const std::string& path) { + void Key::WriteToFile(const std::string& path) const { // Create an ofilestream std::ofstream ofs(path, std::ios::out | std::ios::binary);