diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-07-27 04:27:26 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-07-27 04:27:26 +0100 |
commit | 64b8db08ed9bd9de5aae85aedbf07caf51cb819c (patch) | |
tree | ab9de693f02d318d942b595aebe206a550f1db2c /NorthstarDedicatedTest/serverauthentication.h | |
parent | 80428e6f62899162c036f2752edfbfd7d1adb80b (diff) | |
download | NorthstarLauncher-64b8db08ed9bd9de5aae85aedbf07caf51cb819c.tar.gz NorthstarLauncher-64b8db08ed9bd9de5aae85aedbf07caf51cb819c.zip |
add pdata support, improve filesystem hooks
Diffstat (limited to 'NorthstarDedicatedTest/serverauthentication.h')
-rw-r--r-- | NorthstarDedicatedTest/serverauthentication.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/serverauthentication.h b/NorthstarDedicatedTest/serverauthentication.h new file mode 100644 index 00000000..75187221 --- /dev/null +++ b/NorthstarDedicatedTest/serverauthentication.h @@ -0,0 +1,28 @@ +#pragma once +#include <unordered_map> +#include <string> + +struct AuthData +{ + char* uid; + + // pdata + char* pdata; + size_t pdataSize; +}; + +class ServerAuthenticationManager +{ +public: + std::unordered_map<std::string, AuthData*> m_authData; + +public: + ServerAuthenticationManager(); + void AddPlayerAuth(char* authToken, char* uid, char* pdata, size_t pdataSize); + bool AuthenticatePlayer(__int64 player, char* authToken); + void WritePersistentData(void* player); +}; + +void InitialiseServerAuthentication(HMODULE baseAddress); + +extern ServerAuthenticationManager* g_ServerAuthenticationManager;
\ No newline at end of file |