summaryrefslogtreecommitdiff
path: root/toxcore/onion.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/onion.h')
-rw-r--r--toxcore/onion.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/toxcore/onion.h b/toxcore/onion.h
index daaec91c..9577f019 100644
--- a/toxcore/onion.h
+++ b/toxcore/onion.h
@@ -86,6 +86,15 @@ int send_onion_packet(Networking_Core *net, Onion_Path *path, IP_Port dest, uint
86 */ 86 */
87int send_onion_response(Networking_Core *net, IP_Port dest, uint8_t *data, uint32_t length, uint8_t *ret); 87int send_onion_response(Networking_Core *net, IP_Port dest, uint8_t *data, uint32_t length, uint8_t *ret);
88 88
89/* Function to handle/send received decrypted versions of the packet sent with send_onion_packet.
90 *
91 * return 0 on success.
92 * return 1 on failure.
93 *
94 * Used to handle these packets that are received in a non traditional way (by TCP for example).
95 */
96int onion_send_1(Onion *onion, uint8_t *plain, uint32_t len, IP_Port source, uint8_t *nonce);
97
89Onion *new_onion(DHT *dht); 98Onion *new_onion(DHT *dht);
90 99
91void kill_onion(Onion *onion); 100void kill_onion(Onion *onion);