From 90eb61b35b4643f53e411e16a16c5a3cb9e53e80 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Tue, 6 Mar 2012 09:11:53 +0000 Subject: [PATCH] - reverting the change: we need the hash code to do the dht lookup --- src/namestore/plugin_namestore_sqlite.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/namestore/plugin_namestore_sqlite.c b/src/namestore/plugin_namestore_sqlite.c index a6009611c..5dc52bcfc 100644 --- a/src/namestore/plugin_namestore_sqlite.c +++ b/src/namestore/plugin_namestore_sqlite.c @@ -467,7 +467,7 @@ namestore_sqlite_put_records (void *cls, struct Plugin *plugin = cls; int n; GNUNET_HashCode zone; - struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded zone_delegation; + GNUNET_HashCode zone_delegation; GNUNET_HashCode nh; size_t name_len; uint64_t rvalue; @@ -480,13 +480,12 @@ namestore_sqlite_put_records (void *cls, GNUNET_CRYPTO_hash (name, name_len, &nh); memset (&zone_delegation, 0, sizeof (zone_delegation)); for (i=0;irecord_type == GNUNET_GNS_TYPE_PKEY) { - GNUNET_assert (sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded) == rd[i].data_size); - GNUNET_break (0); + GNUNET_assert (sizeof (GNUNET_HashCode) == rd->data_size); memcpy (&zone_delegation, - rd[i].data, - sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded)); + rd->data, + sizeof (GNUNET_HashCode)); break; } rvalue = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK, UINT64_MAX); -- 2.25.1