7#if PROTOCOL_VERSION > 758
10#if PROTOCOL_VERSION > 759
14#if PROTOCOL_VERSION > 758
16typedef struct rsa_st
RSA;
38 bool JoinServer(
const std::string& server_id,
const std::vector<unsigned char>& shared_secret,
const std::vector<unsigned char>& server_public_key)
const;
43#if PROTOCOL_VERSION > 758
49#if PROTOCOL_VERSION == 759
55 std::vector<unsigned char>
GetMessageSignature(
const std::string& message,
long long int& salt,
long long int& timestamp);
56#elif PROTOCOL_VERSION == 760
65 const std::vector<unsigned char>& previous_signature,
const std::vector<ProtocolCraft::LastSeenMessagesEntry>& last_seen,
66 long long int& salt,
long long int& timestamp);
78 const std::vector<std::vector<unsigned char>>& last_seen,
79 long long int& salt,
long long int& timestamp);
88#if PROTOCOL_VERSION > 758
100#if PROTOCOL_VERSION > 758
bool JoinServer(const std::string &server_id, const std::vector< unsigned char > &shared_secret, const std::vector< unsigned char > &server_public_key) const
bool AuthMicrosoft(const std::string &cache_key)
Authentication using a Microsoft account, storing the credentials in the cache file.
std::string player_display_name
const std::string & GetPlayerDisplayName() const
long long int key_timestamp
void UpdateUUIDBytes()
Compute the UUID bytes from the string one.
std::string mc_access_token
void GetPlayerCertificates()
Get player certificates using the Minecraft token, throw if failed.
const std::string & GetKeySignature() const
const std::array< unsigned char, 16 > & GetPlayerUUID() const
RSA * GetPrivateKey() const
std::string mc_player_uuid
std::string key_signature
std::array< unsigned char, 16 > mc_player_uuid_bytes
const std::string & GetPublicKey() const
std::vector< unsigned char > GetMessageSignature(const std::string &message, const int message_sent_index, const ProtocolCraft::UUID &chat_session_uuid, const std::vector< std::vector< unsigned char > > &last_seen, long long int &salt, long long int ×tamp)
Compute the signature of a message.
bool AuthMCToken(const std::string &mc_token)
Authentication using a minecraft token.
long long int GetKeyTimestamp() const
std::array< unsigned char, 16 > UUID