aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_monitoring.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-07-09 14:37:12 +0000
committerChristian Grothoff <christian@grothoff.org>2013-07-09 14:37:12 +0000
commit15e649e0158e4e591779dbba8bb89a9b1aceecc6 (patch)
treec3c941a8bb476648148c1ab26ca193f9f3788555 /src/namestore/test_namestore_api_monitoring.c
parent733629155b27695e462e43a4883b79769ebecbb5 (diff)
downloadgnunet-15e649e0158e4e591779dbba8bb89a9b1aceecc6.tar.gz
gnunet-15e649e0158e4e591779dbba8bb89a9b1aceecc6.zip
-fixes in monitoring code
Diffstat (limited to 'src/namestore/test_namestore_api_monitoring.c')
-rw-r--r--src/namestore/test_namestore_api_monitoring.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/src/namestore/test_namestore_api_monitoring.c b/src/namestore/test_namestore_api_monitoring.c
index a55e8b525..b3147c43a 100644
--- a/src/namestore/test_namestore_api_monitoring.c
+++ b/src/namestore/test_namestore_api_monitoring.c
@@ -159,28 +159,7 @@ zone_proc (void *cls,
159 const struct GNUNET_NAMESTORE_RecordData *rd, 159 const struct GNUNET_NAMESTORE_RecordData *rd,
160 const struct GNUNET_CRYPTO_EccSignature *signature) 160 const struct GNUNET_CRYPTO_EccSignature *signature)
161{ 161{
162 fprintf (stderr, 162 GNUNET_break (NULL == signature);
163 "Monitor cb for %s\n",
164 name);
165 if (GNUNET_OK != GNUNET_NAMESTORE_verify_signature (zone_key,
166 expire, name,
167 rd_count, rd,
168 signature))
169 {
170 struct GNUNET_HashCode zone_key_hash;
171
172 GNUNET_CRYPTO_hash (zone_key,
173 sizeof (struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded),
174 &zone_key_hash);
175 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
176 "Verifying signature for `%s' in zone `%s' with %u records and expiration %llu failed\n",
177 name,
178 GNUNET_h2s(&zone_key_hash),
179 rd_count,
180 expire.abs_value);
181 GNUNET_break (0);
182 }
183
184 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 163 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
185 "Comparing results name %s\n", 164 "Comparing results name %s\n",
186 name); 165 name);