From: Matthias Wachs Date: Tue, 6 Mar 2012 09:11:53 +0000 (+0000) Subject: - reverting the change: we need the hash code to do the dht lookup X-Git-Tag: initial-import-from-subversion-38251~14406 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=90eb61b35b4643f53e411e16a16c5a3cb9e53e80;p=oweals%2Fgnunet.git - reverting the change: we need the hash code to do the dht lookup --- 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);