From 4f6b49cccf87638864a636989a41f9ca7eb7a89c Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 2 Jun 2024 00:18:33 +0200 Subject: [PATCH] Core/Crypto: Rename our Argon2 to avoid possible conflict with library file on some configurations --- src/common/Cryptography/{Argon2.cpp => Argon2Hash.cpp} | 2 +- src/common/Cryptography/{Argon2.h => Argon2Hash.h} | 0 src/server/shared/Secrets/SecretMgr.cpp | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/common/Cryptography/{Argon2.cpp => Argon2Hash.cpp} (98%) rename src/common/Cryptography/{Argon2.h => Argon2Hash.h} (100%) diff --git a/src/common/Cryptography/Argon2.cpp b/src/common/Cryptography/Argon2Hash.cpp similarity index 98% rename from src/common/Cryptography/Argon2.cpp rename to src/common/Cryptography/Argon2Hash.cpp index 225d92c3994..3113ea39108 100644 --- a/src/common/Cryptography/Argon2.cpp +++ b/src/common/Cryptography/Argon2Hash.cpp @@ -15,7 +15,7 @@ * with this program. If not, see . */ -#include "Argon2.h" +#include "Argon2Hash.h" #include /*static*/ Optional Trinity::Crypto::Argon2::Hash(std::string const& password, BigNumber const& salt, uint32 nIterations, uint32 kibMemoryCost) diff --git a/src/common/Cryptography/Argon2.h b/src/common/Cryptography/Argon2Hash.h similarity index 100% rename from src/common/Cryptography/Argon2.h rename to src/common/Cryptography/Argon2Hash.h diff --git a/src/server/shared/Secrets/SecretMgr.cpp b/src/server/shared/Secrets/SecretMgr.cpp index 81bc2c1c392..a4d487b3401 100644 --- a/src/server/shared/Secrets/SecretMgr.cpp +++ b/src/server/shared/Secrets/SecretMgr.cpp @@ -17,7 +17,7 @@ #include "SecretMgr.h" #include "AES.h" -#include "Argon2.h" +#include "Argon2Hash.h" #include "Config.h" #include "CryptoGenerics.h" #include "DatabaseEnv.h"