aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_simple_delegated_lookup.c
diff options
context:
space:
mode:
authorschanzen <schanzen@140774ce-b5e7-0310-ab8b-a85725594a96>2012-03-19 18:51:32 +0000
committerschanzen <schanzen@140774ce-b5e7-0310-ab8b-a85725594a96>2012-03-19 18:51:32 +0000
commit02f44aff9102a2918597a9ded5db9d9974de01d0 (patch)
treee3e9c7387e66ebae147ff4e32224baea046b5ff8 /src/gns/test_gns_simple_delegated_lookup.c
parent368577689d00fb885674a3706aaeacc961bb2fb8 (diff)
-new short hashes, new short hash cmp
git-svn-id: https://gnunet.org/svn/gnunet@20617 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/gns/test_gns_simple_delegated_lookup.c')
-rw-r--r--src/gns/test_gns_simple_delegated_lookup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gns/test_gns_simple_delegated_lookup.c b/src/gns/test_gns_simple_delegated_lookup.c
index ea1206b9bb..2006754daa 100644
--- a/src/gns/test_gns_simple_delegated_lookup.c
+++ b/src/gns/test_gns_simple_delegated_lookup.c
@@ -204,7 +204,7 @@ do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded bob_pkey;
struct GNUNET_CRYPTO_RsaPrivateKey *alice_key;
struct GNUNET_CRYPTO_RsaPrivateKey *bob_key;
- GNUNET_HashCode bob_hash;
+ struct GNUNET_CRYPTO_ShortHashCode bob_hash;
struct GNUNET_CRYPTO_RsaSignature *sig;
char* alice_keyfile;
@@ -240,9 +240,9 @@ do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
rd.expiration = GNUNET_TIME_absolute_get_forever ();
GNUNET_assert(1 == inet_pton (AF_INET, ip, web));
- GNUNET_CRYPTO_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash);
+ GNUNET_CRYPTO_short_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash);
- rd.data_size = sizeof(GNUNET_HashCode);
+ rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
rd.data = &bob_hash;
rd.record_type = GNUNET_GNS_RECORD_PKEY;