aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_plugin_namestore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/test_plugin_namestore.c')
-rw-r--r--src/namestore/test_plugin_namestore.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/namestore/test_plugin_namestore.c b/src/namestore/test_plugin_namestore.c
index d591eb325..ac2a0bba9 100644
--- a/src/namestore/test_plugin_namestore.c
+++ b/src/namestore/test_plugin_namestore.c
@@ -90,6 +90,7 @@ load_plugin (const struct GNUNET_CONFIGURATION_Handle *cfg)
90 90
91static void 91static void
92test_record (void *cls, 92test_record (void *cls,
93 uint64_t seq,
93 const struct GNUNET_CRYPTO_EcdsaPrivateKey *private_key, 94 const struct GNUNET_CRYPTO_EcdsaPrivateKey *private_key,
94 const char *label, 95 const char *label,
95 unsigned int rd_count, 96 unsigned int rd_count,
@@ -112,7 +113,9 @@ test_record (void *cls,
112 GNUNET_assert (rd[i].record_type == 1 + (id % 13)); 113 GNUNET_assert (rd[i].record_type == 1 + (id % 13));
113 GNUNET_assert (rd[i].flags == 0); 114 GNUNET_assert (rd[i].flags == 0);
114 } 115 }
115 memset (&tzone_private_key, (id % 241), sizeof (tzone_private_key)); 116 memset (&tzone_private_key,
117 (id % 241),
118 sizeof (tzone_private_key));
116 GNUNET_assert (0 == strcmp (label, tname)); 119 GNUNET_assert (0 == strcmp (label, tname));
117 GNUNET_assert (0 == memcmp (&tzone_private_key, 120 GNUNET_assert (0 == memcmp (&tzone_private_key,
118 private_key, 121 private_key,
@@ -156,11 +159,12 @@ put_record (struct GNUNET_NAMESTORE_PluginFunctions *nsp,
156 } 159 }
157 memset (&zone_private_key, (id % 241), sizeof (zone_private_key)); 160 memset (&zone_private_key, (id % 241), sizeof (zone_private_key));
158 memset (&signature, (id % 243), sizeof (signature)); 161 memset (&signature, (id % 243), sizeof (signature));
159 GNUNET_assert (GNUNET_OK == nsp->store_records (nsp->cls, 162 GNUNET_assert (GNUNET_OK ==
160 &zone_private_key, 163 nsp->store_records (nsp->cls,
161 label, 164 &zone_private_key,
162 rd_count, 165 label,
163 rd)); 166 rd_count,
167 rd));
164} 168}
165 169
166 170