fix(utils): typo
This commit is contained in:
parent
4d7d51fb29
commit
008775d1b4
@ -273,8 +273,7 @@ workspace "iw4x"
|
||||
dependencies.imports()
|
||||
|
||||
-- Pre-build
|
||||
prebuildcommands
|
||||
{
|
||||
prebuildcommands {
|
||||
"pushd %{_MAIN_SCRIPT_DIR}",
|
||||
"tools\\premake5 generate-buildinfo",
|
||||
"popd",
|
||||
|
@ -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()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user