summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Authenticator.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-16 01:03:47 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-16 01:03:47 +0200
commit1f6854792cdd6792b27c4f9f3d7d857df9dd64bf (patch)
tree4a45fccb4c6dbf7794d8f5e9d4b0bd5c68a0ec0a /src/Protocol/Authenticator.h
parentPlayer properties are now retrieved (diff)
downloadcuberite-1f6854792cdd6792b27c4f9f3d7d857df9dd64bf.tar
cuberite-1f6854792cdd6792b27c4f9f3d7d857df9dd64bf.tar.gz
cuberite-1f6854792cdd6792b27c4f9f3d7d857df9dd64bf.tar.bz2
cuberite-1f6854792cdd6792b27c4f9f3d7d857df9dd64bf.tar.lz
cuberite-1f6854792cdd6792b27c4f9f3d7d857df9dd64bf.tar.xz
cuberite-1f6854792cdd6792b27c4f9f3d7d857df9dd64bf.tar.zst
cuberite-1f6854792cdd6792b27c4f9f3d7d857df9dd64bf.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Authenticator.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Protocol/Authenticator.h b/src/Protocol/Authenticator.h
index 04fa3e09c..9f6dd60ca 100644
--- a/src/Protocol/Authenticator.h
+++ b/src/Protocol/Authenticator.h
@@ -23,6 +23,11 @@
// fwd: "cRoot.h"
class cRoot;
+namespace Json
+{
+ class Value;
+}
+
@@ -79,12 +84,14 @@ private:
/** cIsThread override: */
virtual void Execute(void) override;
+ /** Connects to a hostname using SSL, sends given data, and sets the response, returning whether all was successful or not */
bool ConnectSecurelyToAddress(const AString & a_CACerts, const AString & a_ExpectedPeerName, const AString & a_Data, AString & a_Response);
/** Returns true if the user authenticated okay, false on error; iLevel is the recursion deptht (bails out if too deep) */
bool AuthWithYggdrasil(AString & a_UserName, const AString & a_ServerId, AString & a_UUID);
- bool GetPlayerProperties(const AString & a_UUID, AString & a_Properties);
+ /** Gets the properties, such as skin, of a player based on their UUID via Mojang's API */
+ bool GetPlayerProperties(const AString & a_UUID, Json::Value & a_Properties);
};