aboutsummaryrefslogtreecommitdiff
path: root/src/common/Cryptography/Authentication/SRP6.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-12-17 23:21:10 +0100
committerfunjoker <funjoker109@gmail.com>2023-12-19 14:15:00 +0100
commit123f2ad97e9cc53504b9e0faa1c180f4d979126f (patch)
tree801b4a4d6604ba70d60e4617567e5b057141acd3 /src/common/Cryptography/Authentication/SRP6.cpp
parent5d6896de598283e00b70885868423eb72e9a53ca (diff)
Core/Bnet: Rewrite LoginRESTService using boost::beast instead of gsoap as http backend and extract generic http code to be reusable elsewhere
(cherry picked from commit acb5fbd48b5bd911dd0da6016a3d86d4c64724b6)
Diffstat (limited to 'src/common/Cryptography/Authentication/SRP6.cpp')
-rw-r--r--src/common/Cryptography/Authentication/SRP6.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/common/Cryptography/Authentication/SRP6.cpp b/src/common/Cryptography/Authentication/SRP6.cpp
index a2266f35f71..c172bbc1d3d 100644
--- a/src/common/Cryptography/Authentication/SRP6.cpp
+++ b/src/common/Cryptography/Authentication/SRP6.cpp
@@ -24,12 +24,7 @@
using SHA1 = Trinity::Crypto::SHA1;
using SRP6 = Trinity::Crypto::SRP6;
-/*static*/ std::array<uint8, 1> const SRP6::g = []()
-{
- std::array<uint8, 1> g_temp;
- g_temp[0] = 7;
- return g_temp;
-}();
+/*static*/ std::array<uint8, 1> const SRP6::g = { 7 };
/*static*/ std::array<uint8, 32> const SRP6::N = HexStrToByteArray<32>("894B645E89E1535BBDAD5B8B290650530801B18EBFBF5E8FAB3C82872A3E9BB7", true);
/*static*/ BigNumber const SRP6::_g(SRP6::g);
/*static*/ BigNumber const SRP6::_N(N);