aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_zone_to_name.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_zone_to_name.c
parent34243a1a0c04ef5723a327124f96e2571ac5fd2e (diff)
downloadgnunet-5a943624e2634d632ee2bf3a78c25b0aeae3813e.tar.gz
gnunet-5a943624e2634d632ee2bf3a78c25b0aeae3813e.zip
- usage of short hashes
Diffstat (limited to 'src/namestore/test_namestore_api_zone_to_name.c')
-rw-r--r--src/namestore/test_namestore_api_zone_to_name.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/namestore/test_namestore_api_zone_to_name.c b/src/namestore/test_namestore_api_zone_to_name.c
index ad9acc890..5fb984dc1 100644
--- a/src/namestore/test_namestore_api_zone_to_name.c
+++ b/src/namestore/test_namestore_api_zone_to_name.c
@@ -46,8 +46,8 @@ static struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pubkey;
46 46
47struct GNUNET_TIME_Absolute expire; 47struct GNUNET_TIME_Absolute expire;
48 48
49static GNUNET_HashCode s_zone; 49static struct GNUNET_CRYPTO_ShortHashCode s_zone;
50static GNUNET_HashCode s_zone_value; 50static struct GNUNET_CRYPTO_ShortHashCode s_zone_value;
51 51
52char * s_name; 52char * s_name;
53 53
@@ -230,8 +230,8 @@ run (void *cls, char *const *args, const char *cfgfile,
230 GNUNET_CRYPTO_rsa_key_get_public(privkey, &pubkey); 230 GNUNET_CRYPTO_rsa_key_get_public(privkey, &pubkey);
231 231
232 /* zone hash */ 232 /* zone hash */
233 GNUNET_CRYPTO_hash (&pubkey, sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), &s_zone); 233 GNUNET_CRYPTO_short_hash (&pubkey, sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), &s_zone);
234 GNUNET_CRYPTO_hash (s_name, strlen (s_name) + 1, &s_zone_value); 234 GNUNET_CRYPTO_short_hash (s_name, strlen (s_name) + 1, &s_zone_value);
235 235
236 struct GNUNET_NAMESTORE_RecordData rd; 236 struct GNUNET_NAMESTORE_RecordData rd;
237 rd.expiration = GNUNET_TIME_absolute_get(); 237 rd.expiration = GNUNET_TIME_absolute_get();