fix(utils): typo

This commit is contained in:
Diavolo 2023-06-22 11:19:25 +02:00
parent 4d7d51fb29
commit 008775d1b4
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5
2 changed files with 3 additions and 4 deletions

View File

@ -273,8 +273,7 @@ workspace "iw4x"
dependencies.imports()
-- Pre-build
prebuildcommands
{
prebuildcommands {
"pushd %{_MAIN_SCRIPT_DIR}",
"tools\\premake5 generate-buildinfo",
"popd",

View File

@ -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<const std::uint8_t*>(pubKeyBuffer.data()), pubKeyBuffer.size(), this->getKeyPtr()) != CRYPT_OK)
if (rsa_import(reinterpret_cast<const std::uint8_t*>(keyBuffer.data()), keyBuffer.size(), this->getKeyPtr()) != CRYPT_OK)
{
ZeroMemory(this->getKeyPtr(), sizeof(*this->getKeyPtr()));
}