mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(net): implement reconnect path in GruntLogin::GetVersionProof
This commit is contained in:
parent
597be15103
commit
3349fcb6e7
@ -95,9 +95,13 @@ const uint8_t* GruntLogin::GetVersionChallenge() {
|
|||||||
|
|
||||||
void GruntLogin::GetVersionProof(const uint8_t* versionChallenge) {
|
void GruntLogin::GetVersionProof(const uint8_t* versionChallenge) {
|
||||||
if (this->IsReconnect()) {
|
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 {
|
} else {
|
||||||
memcpy(this->m_versionChallenge, versionChallenge, sizeof(this->m_versionChallenge));
|
memcpy(this->m_versionChallenge, versionChallenge, sizeof(this->m_versionChallenge));
|
||||||
|
|
||||||
LOGIN_STATE nextState = this->NextSecurityState(LOGIN_STATE_FIRST_SECURITY);
|
LOGIN_STATE nextState = this->NextSecurityState(LOGIN_STATE_FIRST_SECURITY);
|
||||||
|
|
||||||
this->m_loginResponse->UpdateLoginStatus(
|
this->m_loginResponse->UpdateLoginStatus(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user