diff options
author | irungentoo <irungentoo@gmail.com> | 2015-01-29 19:38:44 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-01-29 19:38:44 -0500 |
commit | f463cb52a2dac4bfd3c4a6159c0ddc12d280d9a9 (patch) | |
tree | 77fcbfcd67226586bc566360b86d16cdd071a4e4 /auto_tests | |
parent | b83ff00c277671e087d580452288c89a84a0f3df (diff) |
Code cleanups.
Rename array in Node_format from client_id to public_key.
Diffstat (limited to 'auto_tests')
-rw-r--r-- | auto_tests/onion_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/auto_tests/onion_test.c b/auto_tests/onion_test.c index 8e10eb11..19a0043f 100644 --- a/auto_tests/onion_test.c +++ b/auto_tests/onion_test.c | |||
@@ -138,12 +138,12 @@ START_TEST(test_basic) | |||
138 | 138 | ||
139 | IP_Port on1 = {ip, onion1->net->port}; | 139 | IP_Port on1 = {ip, onion1->net->port}; |
140 | Node_format n1; | 140 | Node_format n1; |
141 | memcpy(n1.client_id, onion1->dht->self_public_key, crypto_box_PUBLICKEYBYTES); | 141 | memcpy(n1.public_key, onion1->dht->self_public_key, crypto_box_PUBLICKEYBYTES); |
142 | n1.ip_port = on1; | 142 | n1.ip_port = on1; |
143 | 143 | ||
144 | IP_Port on2 = {ip, onion2->net->port}; | 144 | IP_Port on2 = {ip, onion2->net->port}; |
145 | Node_format n2; | 145 | Node_format n2; |
146 | memcpy(n2.client_id, onion2->dht->self_public_key, crypto_box_PUBLICKEYBYTES); | 146 | memcpy(n2.public_key, onion2->dht->self_public_key, crypto_box_PUBLICKEYBYTES); |
147 | n2.ip_port = on2; | 147 | n2.ip_port = on2; |
148 | 148 | ||
149 | Node_format nodes[4]; | 149 | Node_format nodes[4]; |
@@ -180,7 +180,7 @@ START_TEST(test_basic) | |||
180 | randombytes(sb_data, sizeof(sb_data)); | 180 | randombytes(sb_data, sizeof(sb_data)); |
181 | uint64_t s; | 181 | uint64_t s; |
182 | memcpy(&s, sb_data, sizeof(uint64_t)); | 182 | memcpy(&s, sb_data, sizeof(uint64_t)); |
183 | memcpy(test_3_pub_key, nodes[3].client_id, crypto_box_PUBLICKEYBYTES); | 183 | memcpy(test_3_pub_key, nodes[3].public_key, crypto_box_PUBLICKEYBYTES); |
184 | ret = send_announce_request(onion1->net, &path, nodes[3], onion1->dht->self_public_key, | 184 | ret = send_announce_request(onion1->net, &path, nodes[3], onion1->dht->self_public_key, |
185 | onion1->dht->self_secret_key, | 185 | onion1->dht->self_secret_key, |
186 | zeroes, onion1->dht->self_public_key, onion1->dht->self_public_key, s); | 186 | zeroes, onion1->dht->self_public_key, onion1->dht->self_public_key, s); |