summaryrefslogtreecommitdiff
path: root/toxcore/net_crypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/net_crypto.h')
-rw-r--r--toxcore/net_crypto.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/toxcore/net_crypto.h b/toxcore/net_crypto.h
index dbbb295c..e41e7e1d 100644
--- a/toxcore/net_crypto.h
+++ b/toxcore/net_crypto.h
@@ -186,6 +186,13 @@ int accept_crypto_connection(Net_Crypto *c, New_Connection *n_c);
186 */ 186 */
187int new_crypto_connection(Net_Crypto *c, uint8_t *real_public_key); 187int new_crypto_connection(Net_Crypto *c, uint8_t *real_public_key);
188 188
189/* Copy friends DHT public key into dht_key.
190 *
191 * return 0 on failure (no key copied).
192 * return timestamp on success (key copied).
193 */
194uint64_t get_connection_dht_key(Net_Crypto *c, int crypt_connection_id, uint8_t *dht_public_key);
195
189/* Set the DHT public key of the crypto connection. 196/* Set the DHT public key of the crypto connection.
190 * timestamp is the time (current_time_monotonic()) at which the key was last confirmed belonging to 197 * timestamp is the time (current_time_monotonic()) at which the key was last confirmed belonging to
191 * the other peer. 198 * the other peer.