summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toxcore/Messenger.c2
-rw-r--r--toxcore/net_crypto.c2
-rw-r--r--toxcore/net_crypto.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index 267670f9..b5ce2e7e 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -2203,7 +2203,7 @@ void do_friends(Messenger *m)
2203 uint8_t dht_public_key[crypto_box_PUBLICKEYBYTES]; 2203 uint8_t dht_public_key[crypto_box_PUBLICKEYBYTES];
2204 2204
2205 if (onion_getfriend_DHT_pubkey(m->onion_c, m->friendlist[i].onion_friendnum, dht_public_key) == 0) { 2205 if (onion_getfriend_DHT_pubkey(m->onion_c, m->friendlist[i].onion_friendnum, dht_public_key) == 0) {
2206 set_conection_dht_public_key(m->net_crypto, m->friendlist[i].crypt_connection_id, dht_public_key); 2206 set_connection_dht_public_key(m->net_crypto, m->friendlist[i].crypt_connection_id, dht_public_key);
2207 } 2207 }
2208 2208
2209 uint8_t direct_connected; 2209 uint8_t direct_connected;
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c
index 56ff1bdd..6b975fe2 100644
--- a/toxcore/net_crypto.c
+++ b/toxcore/net_crypto.c
@@ -1454,7 +1454,7 @@ static int connect_peer_tcp(Net_Crypto *c, int crypt_connection_id)
1454 * return -1 on failure. 1454 * return -1 on failure.
1455 * return 0 on success. 1455 * return 0 on success.
1456 */ 1456 */
1457int set_conection_dht_public_key(Net_Crypto *c, int crypt_connection_id, uint8_t *dht_public_key) 1457int set_connection_dht_public_key(Net_Crypto *c, int crypt_connection_id, uint8_t *dht_public_key)
1458{ 1458{
1459 Crypto_Connection *conn = get_crypto_connection(c, crypt_connection_id); 1459 Crypto_Connection *conn = get_crypto_connection(c, crypt_connection_id);
1460 1460
diff --git a/toxcore/net_crypto.h b/toxcore/net_crypto.h
index 22b23401..e55427f2 100644
--- a/toxcore/net_crypto.h
+++ b/toxcore/net_crypto.h
@@ -189,7 +189,7 @@ int new_crypto_connection(Net_Crypto *c, uint8_t *real_public_key);
189 * return -1 on failure. 189 * return -1 on failure.
190 * return 0 on success. 190 * return 0 on success.
191 */ 191 */
192int set_conection_dht_public_key(Net_Crypto *c, int crypt_connection_id, uint8_t *dht_public_key); 192int set_connection_dht_public_key(Net_Crypto *c, int crypt_connection_id, uint8_t *dht_public_key);
193 193
194/* Set the direct ip of the crypto connection. 194/* Set the direct ip of the crypto connection.
195 * 195 *