summaryrefslogtreecommitdiff
path: root/toxcore/TCP_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/TCP_client.c')
-rw-r--r--toxcore/TCP_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/TCP_client.c b/toxcore/TCP_client.c
index caa1b73d..372f034e 100644
--- a/toxcore/TCP_client.c
+++ b/toxcore/TCP_client.c
@@ -228,7 +228,7 @@ static int generate_handshake(TCP_Client_Connection *TCP_conn)
228 random_nonce(TCP_conn->sent_nonce); 228 random_nonce(TCP_conn->sent_nonce);
229 memcpy(plain + crypto_box_PUBLICKEYBYTES, TCP_conn->sent_nonce, crypto_box_NONCEBYTES); 229 memcpy(plain + crypto_box_PUBLICKEYBYTES, TCP_conn->sent_nonce, crypto_box_NONCEBYTES);
230 memcpy(TCP_conn->last_packet, TCP_conn->self_public_key, crypto_box_PUBLICKEYBYTES); 230 memcpy(TCP_conn->last_packet, TCP_conn->self_public_key, crypto_box_PUBLICKEYBYTES);
231 new_nonce(TCP_conn->last_packet + crypto_box_PUBLICKEYBYTES); 231 random_nonce(TCP_conn->last_packet + crypto_box_PUBLICKEYBYTES);
232 int len = encrypt_data_symmetric(TCP_conn->shared_key, TCP_conn->last_packet + crypto_box_PUBLICKEYBYTES, plain, 232 int len = encrypt_data_symmetric(TCP_conn->shared_key, TCP_conn->last_packet + crypto_box_PUBLICKEYBYTES, plain,
233 sizeof(plain), TCP_conn->last_packet + crypto_box_PUBLICKEYBYTES + crypto_box_NONCEBYTES); 233 sizeof(plain), TCP_conn->last_packet + crypto_box_PUBLICKEYBYTES + crypto_box_NONCEBYTES);
234 234