diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-19 17:11:46 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-19 17:11:46 +0000 |
commit | 5a943624e2634d632ee2bf3a78c25b0aeae3813e (patch) | |
tree | e1fb2539304003d54d0d1e6ea0fdfd3730eb697c /src/namestore/test_namestore_api_lookup.c | |
parent | 34243a1a0c04ef5723a327124f96e2571ac5fd2e (diff) | |
download | gnunet-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.c | 4 |
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; | |||
44 | static struct GNUNET_CRYPTO_RsaPrivateKey * privkey; | 44 | static struct GNUNET_CRYPTO_RsaPrivateKey * privkey; |
45 | static struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pubkey; | 45 | static struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pubkey; |
46 | struct GNUNET_CRYPTO_RsaSignature *s_signature; | 46 | struct GNUNET_CRYPTO_RsaSignature *s_signature; |
47 | static GNUNET_HashCode s_zone; | 47 | static struct GNUNET_CRYPTO_ShortHashCode s_zone; |
48 | struct GNUNET_NAMESTORE_RecordData *s_rd; | 48 | struct GNUNET_NAMESTORE_RecordData *s_rd; |
49 | static char *s_name; | 49 | static 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); |