aboutsummaryrefslogtreecommitdiff
path: root/src/server/authserver/Server/AuthSession.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-07-16 12:54:49 +0200
committerShauren <shauren.trinity@gmail.com>2025-07-16 12:54:49 +0200
commitf21a415b264f6f7dc20c21c54ef74429e8114bea (patch)
treec47545d39c2fb6d092b868b2a8aa8f8d2379e292 /src/server/authserver/Server/AuthSession.h
parent13f18733b8e82aa5502b68d3c47614f4d38c0bee (diff)
Core/Authserver: Minor span/string_view modernization
Diffstat (limited to 'src/server/authserver/Server/AuthSession.h')
-rw-r--r--src/server/authserver/Server/AuthSession.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server/authserver/Server/AuthSession.h b/src/server/authserver/Server/AuthSession.h
index d1063f0d493..4b848e30428 100644
--- a/src/server/authserver/Server/AuthSession.h
+++ b/src/server/authserver/Server/AuthSession.h
@@ -27,12 +27,12 @@
#include "Socket.h"
#include "SRP6.h"
#include <boost/asio/ip/tcp.hpp>
+#include <span>
using boost::asio::ip::tcp;
class AuthHandlerTable;
class ByteBuffer;
-enum eAuthCmd : uint8;
enum AuthStatus
{
@@ -91,7 +91,7 @@ private:
void ReconnectChallengeCallback(PreparedQueryResult result);
void RealmListCallback(PreparedQueryResult result);
- bool VerifyVersion(uint8 const* a, int32 aLength, Trinity::Crypto::SHA1::Digest const& versionProof, bool isReconnect);
+ bool VerifyVersion(std::span<uint8 const> a, Trinity::Crypto::SHA1::Digest const& versionProof, bool isReconnect);
Optional<Trinity::Crypto::SRP6> _srp6;
SessionKey _sessionKey = {};
@@ -100,12 +100,12 @@ private:
AuthStatus _status;
AccountInfo _accountInfo;
Optional<std::vector<uint8>> _totpSecret;
- std::string _localizationName;
- std::string _os;
- std::string _ipCountry;
+ LocaleConstant _locale;
+ uint32 _os;
+ std::string_view _ipCountry;
uint16 _build;
- Minutes _timezoneOffset;
uint8 _expversion;
+ Minutes _timezoneOffset;
QueryCallbackProcessor _queryProcessor;
};