feat(net): implement reconnect path in GruntLogin::GetVersionProof

This commit is contained in:
fallenoak 2025-09-25 23:30:29 -07:00
parent 597be15103
commit 3349fcb6e7
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -95,9 +95,13 @@ const uint8_t* GruntLogin::GetVersionChallenge() {
void GruntLogin::GetVersionProof(const uint8_t* versionChallenge) {
if (this->IsReconnect()) {
// TODO
// During reconnect, version challenge is ignored and version checksum is zeroed out
uint8_t versionChecksum[VERSION_CHECKSUM_LEN] = {};
this->m_clientLink->ProveVersion(versionChecksum);
} else {
memcpy(this->m_versionChallenge, versionChallenge, sizeof(this->m_versionChallenge));
LOGIN_STATE nextState = this->NextSecurityState(LOGIN_STATE_FIRST_SECURITY);
this->m_loginResponse->UpdateLoginStatus(