diff options
author | irungentoo <irungentoo@gmail.com> | 2013-08-21 09:03:44 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-08-21 09:03:44 -0400 |
commit | c9a88607c21fabcb31c83271bd4c6f4b339275b7 (patch) | |
tree | aec074c57eb64d777d4e5e28db5cb72de6a632cd /core/net_crypto.h | |
parent | da6416a58423ee68928b82e68ba8ded34cbeaf40 (diff) | |
parent | 6ffbfe7d174fef05ae1afe2a004097a4af08382b (diff) |
Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core
Diffstat (limited to 'core/net_crypto.h')
-rw-r--r-- | core/net_crypto.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/net_crypto.h b/core/net_crypto.h index 46bcf250..81670993 100644 --- a/core/net_crypto.h +++ b/core/net_crypto.h | |||
@@ -32,6 +32,9 @@ extern "C" { | |||
32 | 32 | ||
33 | #define MAX_INCOMING 64 | 33 | #define MAX_INCOMING 64 |
34 | 34 | ||
35 | #define CRYPTO_PACKET_FRIEND_REQ 32 /* Friend request crypto packet ID */ | ||
36 | #define CRYPTO_PACKET_NAT_PING 254 /* NAT ping crypto packet ID */ | ||
37 | |||
35 | typedef struct { | 38 | typedef struct { |
36 | uint8_t public_key[crypto_box_PUBLICKEYBYTES]; /* the real public key of the peer. */ | 39 | uint8_t public_key[crypto_box_PUBLICKEYBYTES]; /* the real public key of the peer. */ |
37 | uint8_t recv_nonce[crypto_box_NONCEBYTES]; /* nonce of received packets */ | 40 | uint8_t recv_nonce[crypto_box_NONCEBYTES]; /* nonce of received packets */ |