feat(net): handle get version proof

This commit is contained in:
fallenoak 2023-01-09 07:49:49 -06:00 committed by GitHub
parent 59a0883529
commit 85a9f8bde8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 33 additions and 4 deletions

View file

@ -88,8 +88,14 @@ void GruntLogin::GetRealmList() {
// TODO
}
void GruntLogin::GetVersionProof(const uint8_t* a2) {
// TODO
void GruntLogin::GetVersionProof(const uint8_t* crcSalt) {
if (this->IsReconnect()) {
// TODO
} else {
memcpy(this->m_crcSalt, crcSalt, sizeof(this->m_crcSalt));
LOGIN_STATE nextState = this->NextSecurityState(LOGIN_STATE_FIRST_SECURITY);
this->m_loginResponse->UpdateLoginStatus(nextState, LOGIN_OK, nullptr, 0);
}
}
void GruntLogin::Init(LoginResponse* loginResponse) {
@ -133,6 +139,11 @@ void GruntLogin::LogonResult(Grunt::Result result, const uint8_t* a3, uint32_t a
// TODO
}
LOGIN_STATE GruntLogin::NextSecurityState(LOGIN_STATE state) {
// TODO
return LOGIN_STATE_CHECKINGVERSIONS;
}
void GruntLogin::SetMatrixInfo(bool enabled, uint8_t a3, uint8_t a4, uint8_t a5, uint8_t a6, bool a7, uint8_t a8, uint64_t a9, const uint8_t* a10, uint32_t a11) {
// TODO
}