- fixes
[oweals/gnunet.git] / src / namestore / plugin_namestore_sqlite.c
index a6009611c080de1ca4c831410c9d15f75e2b1ec2..98f89b3da6c8f3e85f1cc09480c51da85e9d3d51 100644 (file)
@@ -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;
@@ -482,11 +482,10 @@ namestore_sqlite_put_records (void *cls,
   for (i=0;i<rd_count;i++)
     if (rd[i].record_type == GNUNET_NAMESTORE_TYPE_PKEY)
     {
-      GNUNET_assert (sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded) == rd[i].data_size);
-      GNUNET_break (0);
+      GNUNET_assert (sizeof (GNUNET_HashCode) == rd[i].data_size);
       memcpy (&zone_delegation,
              rd[i].data,
-             sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded));
+             sizeof (GNUNET_HashCode));
       break;
     }
   rvalue = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK, UINT64_MAX);