diff options
author | Gregory Mullen (grayhatter) <greg@grayhatter.com> | 2015-11-07 20:36:57 -0800 |
---|---|---|
committer | Gregory Mullen (grayhatter) <greg@grayhatter.com> | 2015-11-07 20:36:57 -0800 |
commit | e1ad6cc8f9a5613439937096b55b476f65a00730 (patch) | |
tree | 9dcf444c993681cc654f0e2874ab66264ec289c6 /auto_tests/dht_test.c | |
parent | 3631b460a6b763acda718bb71b7f6a1ee31a3299 (diff) | |
parent | 6a494e2cbdd146bb13185d8220061322661a5f5a (diff) |
Merge remote-tracking branch 'upstream/master' into rm-files
Diffstat (limited to 'auto_tests/dht_test.c')
-rw-r--r-- | auto_tests/dht_test.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/auto_tests/dht_test.c b/auto_tests/dht_test.c index 32985bca..8304a046 100644 --- a/auto_tests/dht_test.c +++ b/auto_tests/dht_test.c | |||
@@ -153,7 +153,8 @@ void test_addto_lists_bad(DHT *dht, | |||
153 | { | 153 | { |
154 | // check "bad" clients replacement | 154 | // check "bad" clients replacement |
155 | int used, test1, test2, test3; | 155 | int used, test1, test2, test3; |
156 | uint8_t public_key[crypto_box_PUBLICKEYBYTES], test_id1[crypto_box_PUBLICKEYBYTES], test_id2[crypto_box_PUBLICKEYBYTES], test_id3[crypto_box_PUBLICKEYBYTES]; | 156 | uint8_t public_key[crypto_box_PUBLICKEYBYTES], test_id1[crypto_box_PUBLICKEYBYTES], test_id2[crypto_box_PUBLICKEYBYTES], |
157 | test_id3[crypto_box_PUBLICKEYBYTES]; | ||
157 | uint8_t ipv6 = ip_port->ip.family == AF_INET6 ? 1 : 0; | 158 | uint8_t ipv6 = ip_port->ip.family == AF_INET6 ? 1 : 0; |
158 | 159 | ||
159 | randombytes(public_key, sizeof(public_key)); | 160 | randombytes(public_key, sizeof(public_key)); |
@@ -196,7 +197,8 @@ void test_addto_lists_possible_bad(DHT *dht, | |||
196 | { | 197 | { |
197 | // check "possibly bad" clients replacement | 198 | // check "possibly bad" clients replacement |
198 | int used, test1, test2, test3; | 199 | int used, test1, test2, test3; |
199 | uint8_t public_key[crypto_box_PUBLICKEYBYTES], test_id1[crypto_box_PUBLICKEYBYTES], test_id2[crypto_box_PUBLICKEYBYTES], test_id3[crypto_box_PUBLICKEYBYTES]; | 200 | uint8_t public_key[crypto_box_PUBLICKEYBYTES], test_id1[crypto_box_PUBLICKEYBYTES], test_id2[crypto_box_PUBLICKEYBYTES], |
201 | test_id3[crypto_box_PUBLICKEYBYTES]; | ||
200 | uint8_t ipv6 = ip_port->ip.family == AF_INET6 ? 1 : 0; | 202 | uint8_t ipv6 = ip_port->ip.family == AF_INET6 ? 1 : 0; |
201 | 203 | ||
202 | randombytes(public_key, sizeof(public_key)); | 204 | randombytes(public_key, sizeof(public_key)); |