feat(net): stub implementation of Grunt::ClientLink::CmdAuthLogonProof

This commit is contained in:
fallenoak 2023-02-06 22:31:51 -06:00
parent 25bd29c45f
commit 097b6e6017
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -204,7 +204,38 @@ int32_t Grunt::ClientLink::CmdAuthLogonChallenge(CDataStore& msg) {
}
int32_t Grunt::ClientLink::CmdAuthLogonProof(CDataStore& msg) {
if (msg.m_read >= msg.m_size) {
return 0;
}
uint8_t result;
msg.Get(result);
// Auth failure (success == 0)
if (result != 0) {
if (result == 4) {
// TODO
}
if (msg.m_read > msg.m_size) {
return 1;
}
if (result != 10) {
this->SetState(2);
// TODO range check on result
this->m_clientResponse->LogonResult(static_cast<Grunt::Result>(result), nullptr, 0, 0);
}
return 2;
}
// Auth success
// TODO
return 0;
}