summaryrefslogtreecommitdiff
path: root/toxcore/onion_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/onion_client.h')
-rw-r--r--toxcore/onion_client.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/toxcore/onion_client.h b/toxcore/onion_client.h
index 1d56333a..029f5624 100644
--- a/toxcore/onion_client.h
+++ b/toxcore/onion_client.h
@@ -176,6 +176,15 @@ int onion_set_friend_online(Onion_Client *onion_c, int friend_num, uint8_t is_on
176 */ 176 */
177int onion_getfriendip(Onion_Client *onion_c, int friend_num, IP_Port *ip_port); 177int onion_getfriendip(Onion_Client *onion_c, int friend_num, IP_Port *ip_port);
178 178
179/* Set a friends DHT public key.
180 * timestamp is the time (current_time_monotonic()) at which the key was last confirmed belonging to
181 * the other peer.
182 *
183 * return -1 on failure.
184 * return 0 on success.
185 */
186int onion_set_friend_DHT_pubkey(Onion_Client *onion_c, int friend_num, uint8_t *dht_key, uint64_t timestamp);
187
179/* Copy friends DHT public key into dht_key. 188/* Copy friends DHT public key into dht_key.
180 * 189 *
181 * return 0 on failure (no key copied). 190 * return 0 on failure (no key copied).