aboutsummaryrefslogtreecommitdiff
path: root/src/experimentation
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-11 07:57:13 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-11 07:57:13 +0000
commit393dcdaaa4739e764eecb5ba55ef96edcf1061dd (patch)
treea2c71d342515e827646d11cb8b72d014e4416655 /src/experimentation
parent606bd84112a88ad364839301aac477be8d8a4e6c (diff)
downloadgnunet-393dcdaaa4739e764eecb5ba55ef96edcf1061dd.tar.gz
gnunet-393dcdaaa4739e764eecb5ba55ef96edcf1061dd.zip
-fix ftbfs
Diffstat (limited to 'src/experimentation')
-rw-r--r--src/experimentation/gnunet-daemon-experimentation.h22
-rw-r--r--src/experimentation/gnunet-daemon-experimentation_experiments.c26
-rw-r--r--src/experimentation/gnunet-daemon-experimentation_nodes.c28
3 files changed, 38 insertions, 38 deletions
diff --git a/src/experimentation/gnunet-daemon-experimentation.h b/src/experimentation/gnunet-daemon-experimentation.h
index 86e41a114..9568cfa33 100644
--- a/src/experimentation/gnunet-daemon-experimentation.h
+++ b/src/experimentation/gnunet-daemon-experimentation.h
@@ -93,7 +93,7 @@ struct Experiment
93 /** 93 /**
94 * Experiment issuer 94 * Experiment issuer
95 */ 95 */
96 struct GNUNET_CRYPTO_EccPublicSignKey issuer; 96 struct GNUNET_CRYPTO_EddsaPublicKey issuer;
97 97
98 /** 98 /**
99 * Experiment version as timestamp of creation 99 * Experiment version as timestamp of creation
@@ -178,7 +178,7 @@ struct Node
178 /** 178 /**
179 * Array of issuers accepted by this neighbor. 179 * Array of issuers accepted by this neighbor.
180 */ 180 */
181 struct GNUNET_CRYPTO_EccPublicSignKey *issuer_id; 181 struct GNUNET_CRYPTO_EddsaPublicKey *issuer_id;
182 182
183 unsigned int issuer_count; 183 unsigned int issuer_count;
184 184
@@ -192,7 +192,7 @@ GNUNET_NETWORK_STRUCT_BEGIN
192 * Used to detect experimentation capability 192 * Used to detect experimentation capability
193 * 193 *
194 * This struct is followed by issuer identities: 194 * This struct is followed by issuer identities:
195 * (issuer_count * struct GNUNET_CRYPTO_EccPublicSignKey) 195 * (issuer_count * struct GNUNET_CRYPTO_EddsaPublicKey)
196 * 196 *
197 */ 197 */
198struct Experimentation_Request 198struct Experimentation_Request
@@ -210,7 +210,7 @@ struct Experimentation_Request
210 * Sent if peer is running the daemon 210 * Sent if peer is running the daemon
211 * 211 *
212 * This struct is followed by issuer identities: 212 * This struct is followed by issuer identities:
213 * (issuer_count * struct GNUNET_CRYPTO_EccPublicSignKey) 213 * (issuer_count * struct GNUNET_CRYPTO_EddsaPublicKey)
214 */ 214 */
215struct Experimentation_Response 215struct Experimentation_Response
216{ 216{
@@ -227,7 +227,7 @@ struct Experimentation_Response
227 */ 227 */
228struct Issuer 228struct Issuer
229{ 229{
230 struct GNUNET_CRYPTO_EccPublicSignKey pubkey; 230 struct GNUNET_CRYPTO_EddsaPublicKey pubkey;
231}; 231};
232 232
233 233
@@ -255,7 +255,7 @@ struct GED_start_message
255 /** 255 /**
256 * Experiment issuer 256 * Experiment issuer
257 */ 257 */
258 struct GNUNET_CRYPTO_EccPublicSignKey issuer; 258 struct GNUNET_CRYPTO_EddsaPublicKey issuer;
259 259
260 /** 260 /**
261 * Experiment version as timestamp of creation 261 * Experiment version as timestamp of creation
@@ -276,7 +276,7 @@ struct GED_start_ack_message
276 /** 276 /**
277 * Experiment issuer 277 * Experiment issuer
278 */ 278 */
279 struct GNUNET_CRYPTO_EccPublicSignKey issuer; 279 struct GNUNET_CRYPTO_EddsaPublicKey issuer;
280 280
281 /** 281 /**
282 * Experiment version as timestamp of creation 282 * Experiment version as timestamp of creation
@@ -297,7 +297,7 @@ struct GED_stop_message
297 /** 297 /**
298 * Experiment issuer 298 * Experiment issuer
299 */ 299 */
300 struct GNUNET_CRYPTO_EccPublicSignKey issuer; 300 struct GNUNET_CRYPTO_EddsaPublicKey issuer;
301 301
302 /** 302 /**
303 * Experiment version as timestamp of creation 303 * Experiment version as timestamp of creation
@@ -379,7 +379,7 @@ GED_capabilities_stop (void);
379 * @return #GNUNET_YES or #GNUNET_NO 379 * @return #GNUNET_YES or #GNUNET_NO
380 */ 380 */
381int 381int
382GED_experiments_issuer_accepted (const struct GNUNET_CRYPTO_EccPublicSignKey *issuer_ID); 382GED_experiments_issuer_accepted (const struct GNUNET_CRYPTO_EddsaPublicKey *issuer_ID);
383 383
384 384
385/* 385/*
@@ -391,7 +391,7 @@ GED_experiments_issuer_accepted (const struct GNUNET_CRYPTO_EccPublicSignKey *is
391 * @return the experiment or NULL if not found 391 * @return the experiment or NULL if not found
392 */ 392 */
393struct Experiment * 393struct Experiment *
394GED_experiments_find (const struct GNUNET_CRYPTO_EccPublicSignKey *issuer, 394GED_experiments_find (const struct GNUNET_CRYPTO_EddsaPublicKey *issuer,
395 const char *name, 395 const char *name,
396 const struct GNUNET_TIME_Absolute version); 396 const struct GNUNET_TIME_Absolute version);
397 397
@@ -402,7 +402,7 @@ typedef void (*GNUNET_EXPERIMENTATION_experiments_get_cb) (struct Node *n,
402 402
403void 403void
404GED_experiments_get (struct Node *n, 404GED_experiments_get (struct Node *n,
405 struct GNUNET_CRYPTO_EccPublicSignKey *issuer, 405 struct GNUNET_CRYPTO_EddsaPublicKey *issuer,
406 GNUNET_EXPERIMENTATION_experiments_get_cb get_cb); 406 GNUNET_EXPERIMENTATION_experiments_get_cb get_cb);
407 407
408 408
diff --git a/src/experimentation/gnunet-daemon-experimentation_experiments.c b/src/experimentation/gnunet-daemon-experimentation_experiments.c
index 7d2bb181a..471a7bfdc 100644
--- a/src/experimentation/gnunet-daemon-experimentation_experiments.c
+++ b/src/experimentation/gnunet-daemon-experimentation_experiments.c
@@ -105,11 +105,11 @@ free_issuer (void *cls,
105 * @return #GNUNET_YES or #GNUNET_NO 105 * @return #GNUNET_YES or #GNUNET_NO
106 */ 106 */
107int 107int
108GED_experiments_issuer_accepted (const struct GNUNET_CRYPTO_EccPublicSignKey *issuer_id) 108GED_experiments_issuer_accepted (const struct GNUNET_CRYPTO_EddsaPublicKey *issuer_id)
109{ 109{
110 struct GNUNET_HashCode hash; 110 struct GNUNET_HashCode hash;
111 111
112 GNUNET_CRYPTO_hash (issuer_id, sizeof (struct GNUNET_CRYPTO_EccPublicSignKey), &hash); 112 GNUNET_CRYPTO_hash (issuer_id, sizeof (struct GNUNET_CRYPTO_EddsaPublicKey), &hash);
113 if (GNUNET_CONTAINER_multihashmap_contains (valid_issuers, &hash)) 113 if (GNUNET_CONTAINER_multihashmap_contains (valid_issuers, &hash))
114 return GNUNET_YES; 114 return GNUNET_YES;
115 return GNUNET_NO; 115 return GNUNET_NO;
@@ -121,14 +121,14 @@ GED_experiments_issuer_accepted (const struct GNUNET_CRYPTO_EccPublicSignKey *is
121 * experiment map. 121 * experiment map.
122 */ 122 */
123static void 123static void
124get_experiment_key (const struct GNUNET_CRYPTO_EccPublicSignKey *issuer, 124get_experiment_key (const struct GNUNET_CRYPTO_EddsaPublicKey *issuer,
125 const char *name, 125 const char *name,
126 const struct GNUNET_TIME_Absolute version, 126 const struct GNUNET_TIME_Absolute version,
127 struct GNUNET_HashCode *key) 127 struct GNUNET_HashCode *key)
128{ 128{
129 GNUNET_assert (GNUNET_YES == 129 GNUNET_assert (GNUNET_YES ==
130 GNUNET_CRYPTO_kdf (key, sizeof (struct GNUNET_HashCode), 130 GNUNET_CRYPTO_kdf (key, sizeof (struct GNUNET_HashCode),
131 issuer, sizeof (struct GNUNET_CRYPTO_EccPublicSignKey), 131 issuer, sizeof (struct GNUNET_CRYPTO_EddsaPublicKey),
132 name, strlen (name), 132 name, strlen (name),
133 &version, sizeof (version), 133 &version, sizeof (version),
134 NULL, 0)); 134 NULL, 0));
@@ -144,7 +144,7 @@ get_experiment_key (const struct GNUNET_CRYPTO_EccPublicSignKey *issuer,
144 * @return the experiment or NULL if not found 144 * @return the experiment or NULL if not found
145 */ 145 */
146struct Experiment * 146struct Experiment *
147GED_experiments_find (const struct GNUNET_CRYPTO_EccPublicSignKey *issuer, 147GED_experiments_find (const struct GNUNET_CRYPTO_EddsaPublicKey *issuer,
148 const char *name, 148 const char *name,
149 const struct GNUNET_TIME_Absolute version) 149 const struct GNUNET_TIME_Absolute version)
150{ 150{
@@ -165,7 +165,7 @@ struct GetCtx
165 165
166 GNUNET_EXPERIMENTATION_experiments_get_cb get_cb; 166 GNUNET_EXPERIMENTATION_experiments_get_cb get_cb;
167 167
168 struct GNUNET_CRYPTO_EccPublicSignKey *issuer; 168 struct GNUNET_CRYPTO_EddsaPublicKey *issuer;
169}; 169};
170 170
171 171
@@ -179,7 +179,7 @@ get_it (void *cls,
179 179
180 if (0 == memcmp (&e->issuer, 180 if (0 == memcmp (&e->issuer,
181 get_ctx->issuer, 181 get_ctx->issuer,
182 sizeof (struct GNUNET_CRYPTO_EccPublicSignKey))) 182 sizeof (struct GNUNET_CRYPTO_EddsaPublicKey)))
183 get_ctx->get_cb (get_ctx->n, e); 183 get_ctx->get_cb (get_ctx->n, e);
184 return GNUNET_OK; 184 return GNUNET_OK;
185} 185}
@@ -187,7 +187,7 @@ get_it (void *cls,
187 187
188void 188void
189GED_experiments_get (struct Node *n, 189GED_experiments_get (struct Node *n,
190 struct GNUNET_CRYPTO_EccPublicSignKey *issuer, 190 struct GNUNET_CRYPTO_EddsaPublicKey *issuer,
191 GNUNET_EXPERIMENTATION_experiments_get_cb get_cb) 191 GNUNET_EXPERIMENTATION_experiments_get_cb get_cb)
192{ 192{
193 struct GetCtx get_ctx; 193 struct GetCtx get_ctx;
@@ -210,7 +210,7 @@ GED_experiments_get (struct Node *n,
210int 210int
211GNUNET_EXPERIMENTATION_experiments_add (struct Issuer *i, 211GNUNET_EXPERIMENTATION_experiments_add (struct Issuer *i,
212 const char *name, 212 const char *name,
213 const struct GNUNET_CRYPTO_EccPublicSignKey *issuer_id, 213 const struct GNUNET_CRYPTO_EddsaPublicKey *issuer_id,
214 struct GNUNET_TIME_Absolute version, 214 struct GNUNET_TIME_Absolute version,
215 char *description, 215 char *description,
216 uint32_t required_capabilities, 216 uint32_t required_capabilities,
@@ -284,7 +284,7 @@ exp_file_iterator (void *cls,
284 char *val; 284 char *val;
285 unsigned long long number; 285 unsigned long long number;
286 /* Experiment values */ 286 /* Experiment values */
287 struct GNUNET_CRYPTO_EccPublicSignKey issuer; 287 struct GNUNET_CRYPTO_EddsaPublicKey issuer;
288 struct GNUNET_TIME_Absolute version; 288 struct GNUNET_TIME_Absolute version;
289 char *description; 289 char *description;
290 uint32_t required_capabilities; 290 uint32_t required_capabilities;
@@ -304,7 +304,7 @@ exp_file_iterator (void *cls,
304 return; 304 return;
305 } 305 }
306 if (GNUNET_SYSERR == 306 if (GNUNET_SYSERR ==
307 GNUNET_CRYPTO_ecc_public_sign_key_from_string (val, 307 GNUNET_CRYPTO_eddsa_public_key_from_string (val,
308 strlen (val), 308 strlen (val),
309 &issuer)) 309 &issuer))
310 { 310 {
@@ -406,7 +406,7 @@ GED_experiments_start ()
406 char *issuers; 406 char *issuers;
407 char *file; 407 char *file;
408 char *pos; 408 char *pos;
409 struct GNUNET_CRYPTO_EccPublicSignKey issuer_ID; 409 struct GNUNET_CRYPTO_EddsaPublicKey issuer_ID;
410 struct GNUNET_HashCode hash; 410 struct GNUNET_HashCode hash;
411 411
412 /* Load valid issuer */ 412 /* Load valid issuer */
@@ -425,7 +425,7 @@ GED_experiments_start ()
425 valid_issuers = GNUNET_CONTAINER_multihashmap_create (10, GNUNET_NO); 425 valid_issuers = GNUNET_CONTAINER_multihashmap_create (10, GNUNET_NO);
426 for (pos = strtok (issuers, " "); pos != NULL; pos = strtok (NULL, " ")) 426 for (pos = strtok (issuers, " "); pos != NULL; pos = strtok (NULL, " "))
427 { 427 {
428 if (GNUNET_SYSERR == GNUNET_CRYPTO_ecc_public_sign_key_from_string (pos, 428 if (GNUNET_SYSERR == GNUNET_CRYPTO_eddsa_public_key_from_string (pos,
429 strlen (pos), 429 strlen (pos),
430 &issuer_ID)) 430 &issuer_ID))
431 { 431 {
diff --git a/src/experimentation/gnunet-daemon-experimentation_nodes.c b/src/experimentation/gnunet-daemon-experimentation_nodes.c
index 73fc48bba..aa8a0dbbe 100644
--- a/src/experimentation/gnunet-daemon-experimentation_nodes.c
+++ b/src/experimentation/gnunet-daemon-experimentation_nodes.c
@@ -254,7 +254,7 @@ append_public_key (void *cls,
254 const struct GNUNET_HashCode *key, 254 const struct GNUNET_HashCode *key,
255 void *value) 255 void *value)
256{ 256{
257 struct GNUNET_CRYPTO_EccPublicSignKey **issuers = cls; 257 struct GNUNET_CRYPTO_EddsaPublicKey **issuers = cls;
258 struct Issuer *issuer = value; 258 struct Issuer *issuer = value;
259 259
260 *issuers[0] = issuer->pubkey; 260 *issuers[0] = issuer->pubkey;
@@ -278,9 +278,9 @@ send_experimentation_request_cb (void *cls, size_t bufsize, void *buf)
278 struct Experimentation_Request msg; 278 struct Experimentation_Request msg;
279 unsigned int my_issuer_count = GNUNET_CONTAINER_multihashmap_size (valid_issuers); 279 unsigned int my_issuer_count = GNUNET_CONTAINER_multihashmap_size (valid_issuers);
280 size_t msg_size = sizeof (msg); 280 size_t msg_size = sizeof (msg);
281 size_t ri_size = sizeof (struct GNUNET_CRYPTO_EccPublicSignKey) * my_issuer_count; 281 size_t ri_size = sizeof (struct GNUNET_CRYPTO_EddsaPublicKey) * my_issuer_count;
282 size_t total_size = msg_size + ri_size; 282 size_t total_size = msg_size + ri_size;
283 struct GNUNET_CRYPTO_EccPublicSignKey *issuers; 283 struct GNUNET_CRYPTO_EddsaPublicKey *issuers;
284 284
285 n->cth = NULL; 285 n->cth = NULL;
286 if (NULL == buf) 286 if (NULL == buf)
@@ -299,7 +299,7 @@ send_experimentation_request_cb (void *cls, size_t bufsize, void *buf)
299 msg.capabilities = htonl (GSE_node_capabilities); 299 msg.capabilities = htonl (GSE_node_capabilities);
300 msg.issuer_count = htonl (my_issuer_count); 300 msg.issuer_count = htonl (my_issuer_count);
301 memcpy (buf, &msg, msg_size); 301 memcpy (buf, &msg, msg_size);
302 issuers = (struct GNUNET_CRYPTO_EccPublicSignKey *) buf + msg_size; 302 issuers = (struct GNUNET_CRYPTO_EddsaPublicKey *) buf + msg_size;
303 GNUNET_CONTAINER_multihashmap_iterate (valid_issuers, 303 GNUNET_CONTAINER_multihashmap_iterate (valid_issuers,
304 &append_public_key, 304 &append_public_key,
305 &issuers); 305 &issuers);
@@ -325,7 +325,7 @@ send_experimentation_request (const struct GNUNET_PeerIdentity *peer)
325 325
326 c_issuers = GNUNET_CONTAINER_multihashmap_size (valid_issuers); 326 c_issuers = GNUNET_CONTAINER_multihashmap_size (valid_issuers);
327 size = sizeof (struct Experimentation_Request) + 327 size = sizeof (struct Experimentation_Request) +
328 c_issuers * sizeof (struct GNUNET_CRYPTO_EccPublicSignKey); 328 c_issuers * sizeof (struct GNUNET_CRYPTO_EddsaPublicKey);
329 n = GNUNET_new (struct Node); 329 n = GNUNET_new (struct Node);
330 n->id = *peer; 330 n->id = *peer;
331 n->timeout_task = GNUNET_SCHEDULER_add_delayed (EXP_RESPONSE_TIMEOUT, &remove_request, n); 331 n->timeout_task = GNUNET_SCHEDULER_add_delayed (EXP_RESPONSE_TIMEOUT, &remove_request, n);
@@ -362,10 +362,10 @@ send_response_cb (void *cls, size_t bufsize, void *buf)
362 struct Node *n = cls; 362 struct Node *n = cls;
363 struct Experimentation_Response msg; 363 struct Experimentation_Response msg;
364 size_t c_issuers = GNUNET_CONTAINER_multihashmap_size (valid_issuers); 364 size_t c_issuers = GNUNET_CONTAINER_multihashmap_size (valid_issuers);
365 size_t ri_size = c_issuers * sizeof (struct GNUNET_CRYPTO_EccPublicSignKey); 365 size_t ri_size = c_issuers * sizeof (struct GNUNET_CRYPTO_EddsaPublicKey);
366 size_t msg_size = sizeof (msg); 366 size_t msg_size = sizeof (msg);
367 size_t total_size = msg_size + ri_size; 367 size_t total_size = msg_size + ri_size;
368 struct GNUNET_CRYPTO_EccPublicSignKey *issuers; 368 struct GNUNET_CRYPTO_EddsaPublicKey *issuers;
369 369
370 n->cth = NULL; 370 n->cth = NULL;
371 if (buf == NULL) 371 if (buf == NULL)
@@ -382,7 +382,7 @@ send_response_cb (void *cls, size_t bufsize, void *buf)
382 msg.capabilities = htonl (GSE_node_capabilities); 382 msg.capabilities = htonl (GSE_node_capabilities);
383 msg.issuer_count = htonl (c_issuers); 383 msg.issuer_count = htonl (c_issuers);
384 memcpy (buf, &msg, msg_size); 384 memcpy (buf, &msg, msg_size);
385 issuers = (struct GNUNET_CRYPTO_EccPublicSignKey *) buf + msg_size; 385 issuers = (struct GNUNET_CRYPTO_EddsaPublicKey *) buf + msg_size;
386 GNUNET_CONTAINER_multihashmap_iterate (valid_issuers, 386 GNUNET_CONTAINER_multihashmap_iterate (valid_issuers,
387 &append_public_key, 387 &append_public_key,
388 &issuers); 388 &issuers);
@@ -471,7 +471,7 @@ handle_request (const struct GNUNET_PeerIdentity *peer,
471 struct Node *n; 471 struct Node *n;
472 struct NodeComCtx *e_ctx; 472 struct NodeComCtx *e_ctx;
473 const struct Experimentation_Request *rm = (const struct Experimentation_Request *) message; 473 const struct Experimentation_Request *rm = (const struct Experimentation_Request *) message;
474 const struct GNUNET_CRYPTO_EccPublicSignKey *rmi = (const struct GNUNET_CRYPTO_EccPublicSignKey *) &rm[1]; 474 const struct GNUNET_CRYPTO_EddsaPublicKey *rmi = (const struct GNUNET_CRYPTO_EddsaPublicKey *) &rm[1];
475 unsigned int my_issuer_count = GNUNET_CONTAINER_multihashmap_size (valid_issuers); 475 unsigned int my_issuer_count = GNUNET_CONTAINER_multihashmap_size (valid_issuers);
476 int c1; 476 int c1;
477 int c2; 477 int c2;
@@ -486,7 +486,7 @@ handle_request (const struct GNUNET_PeerIdentity *peer,
486 } 486 }
487 ic = ntohl (rm->issuer_count); 487 ic = ntohl (rm->issuer_count);
488 if (ntohs (message->size) != 488 if (ntohs (message->size) !=
489 sizeof (struct Experimentation_Request) + ic * sizeof (struct GNUNET_CRYPTO_EccPublicSignKey)) 489 sizeof (struct Experimentation_Request) + ic * sizeof (struct GNUNET_CRYPTO_EddsaPublicKey))
490 { 490 {
491 GNUNET_break (0); 491 GNUNET_break (0);
492 return; 492 return;
@@ -537,7 +537,7 @@ handle_request (const struct GNUNET_PeerIdentity *peer,
537 "Request from peer `%s' with %u issuers, we accepted %u issuer \n", 537 "Request from peer `%s' with %u issuers, we accepted %u issuer \n",
538 GNUNET_i2s (peer), ic, ic_accepted); 538 GNUNET_i2s (peer), ic, ic_accepted);
539 GNUNET_free_non_null (n->issuer_id); 539 GNUNET_free_non_null (n->issuer_id);
540 n->issuer_id = GNUNET_malloc (ic_accepted * sizeof (struct GNUNET_CRYPTO_EccPublicSignKey)); 540 n->issuer_id = GNUNET_malloc (ic_accepted * sizeof (struct GNUNET_CRYPTO_EddsaPublicKey));
541 c2 = 0; 541 c2 = 0;
542 for (c1 = 0; c1 < ic; c1++) 542 for (c1 = 0; c1 < ic; c1++)
543 { 543 {
@@ -557,7 +557,7 @@ handle_request (const struct GNUNET_PeerIdentity *peer,
557 e_ctx->n = n; 557 e_ctx->n = n;
558 e_ctx->e = NULL; 558 e_ctx->e = NULL;
559 e_ctx->size = sizeof (struct Experimentation_Response) + 559 e_ctx->size = sizeof (struct Experimentation_Response) +
560 my_issuer_count * sizeof (struct GNUNET_CRYPTO_EccPublicSignKey); 560 my_issuer_count * sizeof (struct GNUNET_CRYPTO_EddsaPublicKey);
561 e_ctx->notify = &send_response_cb; 561 e_ctx->notify = &send_response_cb;
562 e_ctx->notify_cls = n; 562 e_ctx->notify_cls = n;
563 563
@@ -577,7 +577,7 @@ static void handle_response (const struct GNUNET_PeerIdentity *peer,
577{ 577{
578 struct Node *n; 578 struct Node *n;
579 const struct Experimentation_Response *rm = (const struct Experimentation_Response *) message; 579 const struct Experimentation_Response *rm = (const struct Experimentation_Response *) message;
580 const struct GNUNET_CRYPTO_EccPublicSignKey *rmi = (const struct GNUNET_CRYPTO_EccPublicSignKey *) &rm[1]; 580 const struct GNUNET_CRYPTO_EddsaPublicKey *rmi = (const struct GNUNET_CRYPTO_EddsaPublicKey *) &rm[1];
581 uint32_t ic; 581 uint32_t ic;
582 uint32_t ic_accepted; 582 uint32_t ic_accepted;
583 int make_active; 583 int make_active;
@@ -590,7 +590,7 @@ static void handle_response (const struct GNUNET_PeerIdentity *peer,
590 return; 590 return;
591 } 591 }
592 ic = ntohl (rm->issuer_count); 592 ic = ntohl (rm->issuer_count);
593 if (ntohs (message->size) != sizeof (struct Experimentation_Response) + ic * sizeof (struct GNUNET_CRYPTO_EccPublicSignKey)) 593 if (ntohs (message->size) != sizeof (struct Experimentation_Response) + ic * sizeof (struct GNUNET_CRYPTO_EddsaPublicKey))
594 { 594 {
595 GNUNET_break (0); 595 GNUNET_break (0);
596 return; 596 return;