diff --git a/premake5.lua b/premake5.lua index 41cda692..35554fdf 100644 --- a/premake5.lua +++ b/premake5.lua @@ -273,8 +273,7 @@ workspace "iw4x" dependencies.imports() -- Pre-build - prebuildcommands - { + prebuildcommands { "pushd %{_MAIN_SCRIPT_DIR}", "tools\\premake5 generate-buildinfo", "popd", diff --git a/src/Utils/Cryptography.hpp b/src/Utils/Cryptography.hpp index ec837130..46ac5e14 100644 --- a/src/Utils/Cryptography.hpp +++ b/src/Utils/Cryptography.hpp @@ -285,11 +285,11 @@ namespace Utils return std::string{}; } - void set(const std::string& pubKeyBuffer) + void set(const std::string& keyBuffer) { this->free(); - if (rsa_import(reinterpret_cast(pubKeyBuffer.data()), pubKeyBuffer.size(), this->getKeyPtr()) != CRYPT_OK) + if (rsa_import(reinterpret_cast(keyBuffer.data()), keyBuffer.size(), this->getKeyPtr()) != CRYPT_OK) { ZeroMemory(this->getKeyPtr(), sizeof(*this->getKeyPtr())); }