summaryrefslogtreecommitdiff
path: root/auto_tests/TCP_test.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-03-29 22:19:03 -0400
committerirungentoo <irungentoo@gmail.com>2014-03-29 22:19:03 -0400
commit98cba889a70c62847da9127832e3aece8722e235 (patch)
treee202670f64c706b63e4a9d59b6c69da1388058c4 /auto_tests/TCP_test.c
parent8aaa5fe996e44a0c68c069b8e70649264f5e8a56 (diff)
TCP server now has onion functionality.
All the IP/Port related structs now have __attribute__ ((__packed__))
Diffstat (limited to 'auto_tests/TCP_test.c')
-rw-r--r--auto_tests/TCP_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auto_tests/TCP_test.c b/auto_tests/TCP_test.c
index 6e46492c..03ca8893 100644
--- a/auto_tests/TCP_test.c
+++ b/auto_tests/TCP_test.c
@@ -28,7 +28,7 @@ START_TEST(test_basic)
28 uint8_t self_public_key[crypto_box_PUBLICKEYBYTES]; 28 uint8_t self_public_key[crypto_box_PUBLICKEYBYTES];
29 uint8_t self_secret_key[crypto_box_SECRETKEYBYTES]; 29 uint8_t self_secret_key[crypto_box_SECRETKEYBYTES];
30 crypto_box_keypair(self_public_key, self_secret_key); 30 crypto_box_keypair(self_public_key, self_secret_key);
31 TCP_Server *tcp_s = new_TCP_server(1, NUM_PORTS, ports, self_public_key, self_secret_key); 31 TCP_Server *tcp_s = new_TCP_server(1, NUM_PORTS, ports, self_public_key, self_secret_key, NULL);
32 ck_assert_msg(tcp_s != NULL, "Failed to create TCP relay server"); 32 ck_assert_msg(tcp_s != NULL, "Failed to create TCP relay server");
33 33
34 sock_t sock = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP); 34 sock_t sock = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP);
@@ -202,7 +202,7 @@ START_TEST(test_some)
202 uint8_t self_public_key[crypto_box_PUBLICKEYBYTES]; 202 uint8_t self_public_key[crypto_box_PUBLICKEYBYTES];
203 uint8_t self_secret_key[crypto_box_SECRETKEYBYTES]; 203 uint8_t self_secret_key[crypto_box_SECRETKEYBYTES];
204 crypto_box_keypair(self_public_key, self_secret_key); 204 crypto_box_keypair(self_public_key, self_secret_key);
205 TCP_Server *tcp_s = new_TCP_server(1, NUM_PORTS, ports, self_public_key, self_secret_key); 205 TCP_Server *tcp_s = new_TCP_server(1, NUM_PORTS, ports, self_public_key, self_secret_key, NULL);
206 ck_assert_msg(tcp_s != NULL, "Failed to create TCP relay server"); 206 ck_assert_msg(tcp_s != NULL, "Failed to create TCP relay server");
207 207
208 struct sec_TCP_con *con1 = new_TCP_con(tcp_s); 208 struct sec_TCP_con *con1 = new_TCP_con(tcp_s);