aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_lookup.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-03-19 17:11:46 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-03-19 17:11:46 +0000
commit5a943624e2634d632ee2bf3a78c25b0aeae3813e (patch)
treee1fb2539304003d54d0d1e6ea0fdfd3730eb697c /src/namestore/test_namestore_api_lookup.c
parent34243a1a0c04ef5723a327124f96e2571ac5fd2e (diff)
downloadgnunet-5a943624e2634d632ee2bf3a78c25b0aeae3813e.tar.gz
gnunet-5a943624e2634d632ee2bf3a78c25b0aeae3813e.zip
- usage of short hashes
Diffstat (limited to 'src/namestore/test_namestore_api_lookup.c')
-rw-r--r--src/namestore/test_namestore_api_lookup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/namestore/test_namestore_api_lookup.c b/src/namestore/test_namestore_api_lookup.c
index 4a33c6467..5be939a89 100644
--- a/src/namestore/test_namestore_api_lookup.c
+++ b/src/namestore/test_namestore_api_lookup.c
@@ -44,7 +44,7 @@ static struct GNUNET_OS_Process *arm;
44static struct GNUNET_CRYPTO_RsaPrivateKey * privkey; 44static struct GNUNET_CRYPTO_RsaPrivateKey * privkey;
45static struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pubkey; 45static struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pubkey;
46struct GNUNET_CRYPTO_RsaSignature *s_signature; 46struct GNUNET_CRYPTO_RsaSignature *s_signature;
47static GNUNET_HashCode s_zone; 47static struct GNUNET_CRYPTO_ShortHashCode s_zone;
48struct GNUNET_NAMESTORE_RecordData *s_rd; 48struct GNUNET_NAMESTORE_RecordData *s_rd;
49static char *s_name; 49static char *s_name;
50 50
@@ -273,7 +273,7 @@ run (void *cls, char *const *args, const char *cfgfile,
273 s_signature = GNUNET_NAMESTORE_create_signature(privkey, s_rd[0].expiration, s_name, s_rd, RECORDS); 273 s_signature = GNUNET_NAMESTORE_create_signature(privkey, s_rd[0].expiration, s_name, s_rd, RECORDS);
274 274
275 /* create random zone hash */ 275 /* create random zone hash */
276 GNUNET_CRYPTO_hash (&pubkey, sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), &s_zone); 276 GNUNET_CRYPTO_short_hash (&pubkey, sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), &s_zone);
277 277
278 start_arm (cfgfile); 278 start_arm (cfgfile);
279 GNUNET_assert (arm != NULL); 279 GNUNET_assert (arm != NULL);