diff options
Diffstat (limited to 'toxcore/ping.c')
-rw-r--r-- | toxcore/ping.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/ping.c b/toxcore/ping.c index 3b39d911..3a189f23 100644 --- a/toxcore/ping.c +++ b/toxcore/ping.c | |||
@@ -135,7 +135,7 @@ int send_ping_request(void *ping, Net_Crypto *c, IP_Port ipp, uint8_t *client_id | |||
135 | 135 | ||
136 | pk[0] = NET_PACKET_PING_REQUEST; | 136 | pk[0] = NET_PACKET_PING_REQUEST; |
137 | id_cpy(pk + 1, c->self_public_key); // Our pubkey | 137 | id_cpy(pk + 1, c->self_public_key); // Our pubkey |
138 | random_nonce(pk + 1 + CLIENT_ID_SIZE); // Generate random nonce | 138 | new_nonce(pk + 1 + CLIENT_ID_SIZE); // Generate new nonce |
139 | 139 | ||
140 | // Encrypt ping_id using recipient privkey | 140 | // Encrypt ping_id using recipient privkey |
141 | rc = encrypt_data(client_id, | 141 | rc = encrypt_data(client_id, |
@@ -160,7 +160,7 @@ int send_ping_response(Net_Crypto *c, IP_Port ipp, uint8_t *client_id, uint64_t | |||
160 | 160 | ||
161 | pk[0] = NET_PACKET_PING_RESPONSE; | 161 | pk[0] = NET_PACKET_PING_RESPONSE; |
162 | id_cpy(pk + 1, c->self_public_key); // Our pubkey | 162 | id_cpy(pk + 1, c->self_public_key); // Our pubkey |
163 | random_nonce(pk + 1 + CLIENT_ID_SIZE); // Generate random nonce | 163 | new_nonce(pk + 1 + CLIENT_ID_SIZE); // Generate new nonce |
164 | 164 | ||
165 | // Encrypt ping_id using recipient privkey | 165 | // Encrypt ping_id using recipient privkey |
166 | rc = encrypt_data(client_id, | 166 | rc = encrypt_data(client_id, |