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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/onion_client.h b/toxcore/onion_client.h
index 1f15d4bf..bf891e7a 100644
--- a/toxcore/onion_client.h
+++ b/toxcore/onion_client.h
@@ -171,7 +171,7 @@ int onion_set_friend_online(Onion_Client *onion_c, int friend_num, uint8_t is_on
171 * return 1, ip if client_id refers to a friend and we found him 171 * return 1, ip if client_id refers to a friend and we found him
172 * 172 *
173 */ 173 */
174int onion_getfriendip(Onion_Client *onion_c, int friend_num, IP_Port *ip_port); 174int onion_getfriendip(const Onion_Client *onion_c, int friend_num, IP_Port *ip_port);
175 175
176/* Set the function for this friend that will be callbacked with object and number 176/* Set the function for this friend that will be callbacked with object and number
177 * when that friends gives us one of the TCP relays he is connected to. 177 * when that friends gives us one of the TCP relays he is connected to.
@@ -198,7 +198,7 @@ int onion_set_friend_DHT_pubkey(Onion_Client *onion_c, int friend_num, const uin
198 * return 0 on failure (no key copied). 198 * return 0 on failure (no key copied).
199 * return timestamp on success (key copied). 199 * return timestamp on success (key copied).
200 */ 200 */
201uint64_t onion_getfriend_DHT_pubkey(Onion_Client *onion_c, int friend_num, uint8_t *dht_key); 201uint64_t onion_getfriend_DHT_pubkey(const Onion_Client *onion_c, int friend_num, uint8_t *dht_key);
202 202
203#define ONION_DATA_IN_RESPONSE_MIN_SIZE (crypto_box_PUBLICKEYBYTES + crypto_box_MACBYTES) 203#define ONION_DATA_IN_RESPONSE_MIN_SIZE (crypto_box_PUBLICKEYBYTES + crypto_box_MACBYTES)
204#define ONION_CLIENT_MAX_DATA_SIZE (MAX_DATA_REQUEST_SIZE - ONION_DATA_IN_RESPONSE_MIN_SIZE) 204#define ONION_CLIENT_MAX_DATA_SIZE (MAX_DATA_REQUEST_SIZE - ONION_DATA_IN_RESPONSE_MIN_SIZE)