diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-04-10 09:02:17 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-04-10 09:02:17 +0000 |
commit | 60c01495b1f945b9755d72261f1c6f5ea8ea1fda (patch) | |
tree | 52a55b4f47abda37fa5f37f6a057aabdb3720271 /src/peerinfo/test_peerinfo_api.c | |
parent | 54ed2dc773c3f009f6861af2317f26b031e9d2a3 (diff) | |
download | gnunet-60c01495b1f945b9755d72261f1c6f5ea8ea1fda.tar.gz gnunet-60c01495b1f945b9755d72261f1c6f5ea8ea1fda.zip |
multiple major fixes:
- shipped hellos were never parsed
- when hello files was parsed from certain file, hello from this was ignored
major changes in this commit which can break functionality atm
Diffstat (limited to 'src/peerinfo/test_peerinfo_api.c')
-rw-r--r-- | src/peerinfo/test_peerinfo_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peerinfo/test_peerinfo_api.c b/src/peerinfo/test_peerinfo_api.c index d3dcc2fd0..a68b2bdb7 100644 --- a/src/peerinfo/test_peerinfo_api.c +++ b/src/peerinfo/test_peerinfo_api.c | |||
@@ -81,12 +81,12 @@ address_generator (void *cls, size_t max, void *buf) | |||
81 | return ret; | 81 | return ret; |
82 | } | 82 | } |
83 | 83 | ||
84 | struct GNUNET_PeerIdentity pid; | ||
84 | 85 | ||
85 | static void | 86 | static void |
86 | add_peer () | 87 | add_peer () |
87 | { | 88 | { |
88 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pkey; | 89 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pkey; |
89 | struct GNUNET_PeerIdentity pid; | ||
90 | struct GNUNET_HELLO_Message *h2; | 90 | struct GNUNET_HELLO_Message *h2; |
91 | size_t agc; | 91 | size_t agc; |
92 | 92 | ||
@@ -152,7 +152,7 @@ run (void *cls, | |||
152 | h = GNUNET_PEERINFO_connect (cfg); | 152 | h = GNUNET_PEERINFO_connect (cfg); |
153 | GNUNET_assert (NULL != h); | 153 | GNUNET_assert (NULL != h); |
154 | add_peer (); | 154 | add_peer (); |
155 | ic = GNUNET_PEERINFO_iterate (h, GNUNET_NO, NULL, | 155 | ic = GNUNET_PEERINFO_iterate (h, GNUNET_NO, &pid, |
156 | GNUNET_TIME_relative_multiply | 156 | GNUNET_TIME_relative_multiply |
157 | (GNUNET_TIME_UNIT_SECONDS, 15), &process, cls); | 157 | (GNUNET_TIME_UNIT_SECONDS, 15), &process, cls); |
158 | } | 158 | } |