diff options
Diffstat (limited to 'src/gns/test_gns_dht_delegated_lookup.c')
-rw-r--r-- | src/gns/test_gns_dht_delegated_lookup.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gns/test_gns_dht_delegated_lookup.c b/src/gns/test_gns_dht_delegated_lookup.c index 816196048..83fdf1873 100644 --- a/src/gns/test_gns_dht_delegated_lookup.c +++ b/src/gns/test_gns_dht_delegated_lookup.c | |||
@@ -255,7 +255,7 @@ do_lookup(void *cls, const struct GNUNET_PeerIdentity *id, | |||
255 | 255 | ||
256 | 256 | ||
257 | char* alice_keyfile; | 257 | char* alice_keyfile; |
258 | 258 | GNUNET_HashCode bob_hash; | |
259 | 259 | ||
260 | 260 | ||
261 | GNUNET_SCHEDULER_cancel (die_task); | 261 | GNUNET_SCHEDULER_cancel (die_task); |
@@ -292,11 +292,12 @@ do_lookup(void *cls, const struct GNUNET_PeerIdentity *id, | |||
292 | 292 | ||
293 | GNUNET_CRYPTO_rsa_key_get_public (alice_key, &alice_pkey); | 293 | GNUNET_CRYPTO_rsa_key_get_public (alice_key, &alice_pkey); |
294 | GNUNET_CRYPTO_rsa_key_get_public (bob_key, &bob_pkey); | 294 | GNUNET_CRYPTO_rsa_key_get_public (bob_key, &bob_pkey); |
295 | GNUNET_CRYPTO_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash); | ||
295 | 296 | ||
296 | struct GNUNET_NAMESTORE_RecordData rd; | 297 | struct GNUNET_NAMESTORE_RecordData rd; |
297 | rd.expiration = GNUNET_TIME_absolute_get_forever (); | 298 | rd.expiration = GNUNET_TIME_absolute_get_forever (); |
298 | rd.data_size = sizeof(bob_pkey); | 299 | rd.data_size = sizeof(GNUNET_HashCode); |
299 | rd.data = &bob_pkey; | 300 | rd.data = &bob_hash; |
300 | rd.record_type = GNUNET_GNS_RECORD_PKEY; | 301 | rd.record_type = GNUNET_GNS_RECORD_PKEY; |
301 | 302 | ||
302 | GNUNET_NAMESTORE_record_create (namestore_handle, | 303 | GNUNET_NAMESTORE_record_create (namestore_handle, |