..
This commit is contained in:
parent
29d76989e3
commit
0e4d421668
1 changed files with 2 additions and 2 deletions
|
@ -553,11 +553,11 @@ int main(int argc, const char* argv[])
|
||||||
|
|
||||||
memcpy(incomingBuffer->data + length, serverPassword, passwordLength);
|
memcpy(incomingBuffer->data + length, serverPassword, passwordLength);
|
||||||
SHA256(incomingBuffer->data, length + passwordLength, outgoingBuffer->data);
|
SHA256(incomingBuffer->data, length + passwordLength, outgoingBuffer->data);
|
||||||
|
|
||||||
outgoingBuffer->type = htole16(REWIND_TYPE_AUTHENTICATION);
|
outgoingBuffer->type = htole16(REWIND_TYPE_AUTHENTICATION);
|
||||||
outgoingBuffer->number = htole32(++ sequenceNumbers[0]);
|
outgoingBuffer->number = htole32(++ sequenceNumbers[0]);
|
||||||
outgoingBuffer->length = htole16(SHA256_DIGEST_LENGTH);
|
outgoingBuffer->length = htole16(SHA256_DIGEST_LENGTH);
|
||||||
|
|
||||||
sendto(uplinkHandle, outgoingBuffer, sizeof(struct RewindData) + SHA256_DIGEST_LENGTH, 0, serverAddress->ai_addr, serverAddress->ai_addrlen);
|
sendto(uplinkHandle, outgoingBuffer, sizeof(struct RewindData) + SHA256_DIGEST_LENGTH, 0, serverAddress->ai_addr, serverAddress->ai_addrlen);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue