summaryrefslogtreecommitdiff
path: root/auto_tests
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-01-13 19:29:20 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-01-14 14:20:20 +0000
commit4b54d14d9c35740140962942c48d964ee43b49ba (patch)
tree0656d08eb54af6fae7e427b0623c55e8c40a2af4 /auto_tests
parent1e258a1915d62f63335987691b4216dd8c622247 (diff)
Make Onion_Announce a module-private type.
Diffstat (limited to 'auto_tests')
-rw-r--r--auto_tests/onion_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/auto_tests/onion_test.c b/auto_tests/onion_test.c
index 442d7d34..31587970 100644
--- a/auto_tests/onion_test.c
+++ b/auto_tests/onion_test.c
@@ -222,13 +222,13 @@ START_TEST(test_basic)
222 222
223 random_bytes(sb_data, sizeof(sb_data)); 223 random_bytes(sb_data, sizeof(sb_data));
224 memcpy(&s, sb_data, sizeof(uint64_t)); 224 memcpy(&s, sb_data, sizeof(uint64_t));
225 memcpy(onion2_a->entries[1].public_key, onion2->dht->self_public_key, CRYPTO_PUBLIC_KEY_SIZE); 225 memcpy(onion_announce_entry_public_key(onion2_a, 1), onion2->dht->self_public_key, CRYPTO_PUBLIC_KEY_SIZE);
226 onion2_a->entries[1].time = unix_time(); 226 onion_announce_entry_set_time(onion2_a, 1, unix_time());
227 networking_registerhandler(onion1->net, NET_PACKET_ONION_DATA_RESPONSE, &handle_test_4, onion1); 227 networking_registerhandler(onion1->net, NET_PACKET_ONION_DATA_RESPONSE, &handle_test_4, onion1);
228 send_announce_request(onion1->net, &path, nodes[3], onion1->dht->self_public_key, onion1->dht->self_secret_key, 228 send_announce_request(onion1->net, &path, nodes[3], onion1->dht->self_public_key, onion1->dht->self_secret_key,
229 test_3_ping_id, onion1->dht->self_public_key, onion1->dht->self_public_key, s); 229 test_3_ping_id, onion1->dht->self_public_key, onion1->dht->self_public_key, s);
230 230
231 while (memcmp(onion2_a->entries[ONION_ANNOUNCE_MAX_ENTRIES - 2].public_key, onion1->dht->self_public_key, 231 while (memcmp(onion_announce_entry_public_key(onion2_a, ONION_ANNOUNCE_MAX_ENTRIES - 2), onion1->dht->self_public_key,
232 CRYPTO_PUBLIC_KEY_SIZE) != 0) { 232 CRYPTO_PUBLIC_KEY_SIZE) != 0) {
233 do_onion(onion1); 233 do_onion(onion1);
234 do_onion(onion2); 234 do_onion(onion2);