summaryrefslogtreecommitdiff
path: root/toxcore/TCP_connection.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-12-19 02:47:42 +0000
committeriphydf <iphydf@users.noreply.github.com>2016-12-22 10:26:59 +0000
commitce29c8e7ec91d95167b2dea3aee9fd1ae1aac254 (patch)
treea288df55c44e8edf816e6abbde19a70faef73394 /toxcore/TCP_connection.h
parent7122d2e862e028a730478d88cd61557fbed16ebf (diff)
Wrap all sodium/nacl functions in crypto_core.c.
Diffstat (limited to 'toxcore/TCP_connection.h')
-rw-r--r--toxcore/TCP_connection.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/TCP_connection.h b/toxcore/TCP_connection.h
index e87196f0..0532c36f 100644
--- a/toxcore/TCP_connection.h
+++ b/toxcore/TCP_connection.h
@@ -53,7 +53,7 @@
53 53
54typedef struct { 54typedef struct {
55 uint8_t status; 55 uint8_t status;
56 uint8_t public_key[crypto_box_PUBLICKEYBYTES]; /* The dht public key of the peer */ 56 uint8_t public_key[CRYPTO_PUBLIC_KEY_SIZE]; /* The dht public key of the peer */
57 57
58 struct { 58 struct {
59 uint32_t tcp_connection; 59 uint32_t tcp_connection;
@@ -74,7 +74,7 @@ typedef struct {
74 74
75 /* Only used when connection is sleeping. */ 75 /* Only used when connection is sleeping. */
76 IP_Port ip_port; 76 IP_Port ip_port;
77 uint8_t relay_pk[crypto_box_PUBLICKEYBYTES]; 77 uint8_t relay_pk[CRYPTO_PUBLIC_KEY_SIZE];
78 bool unsleep; /* set to 1 to unsleep connection. */ 78 bool unsleep; /* set to 1 to unsleep connection. */
79} TCP_con; 79} TCP_con;
80 80