From 008775d1b4a7a544aac287b1704c25b9ede49163 Mon Sep 17 00:00:00 2001 From: Diavolo Date: Thu, 22 Jun 2023 11:19:25 +0200 Subject: [PATCH] fix(utils): typo --- premake5.lua | 3 +-- src/Utils/Cryptography.hpp | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) 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())); }