aboutsummaryrefslogtreecommitdiff
path: root/src/revocation
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-11-27 09:50:41 +0000
committerChristian Grothoff <christian@grothoff.org>2014-11-27 09:50:41 +0000
commit44bb721ef043f99e97d60231438b9e71104d99d7 (patch)
tree476330cbfe2031fa3e3daecf8bf3c45a5156b800 /src/revocation
parentbf716069e987193e1ee0d06bbc4af245e6ffa821 (diff)
downloadgnunet-44bb721ef043f99e97d60231438b9e71104d99d7.tar.gz
gnunet-44bb721ef043f99e97d60231438b9e71104d99d7.zip
eliminating useless salt argument, salt can be generated inside of gnunet-service-set
Diffstat (limited to 'src/revocation')
-rw-r--r--src/revocation/gnunet-service-revocation.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/revocation/gnunet-service-revocation.c b/src/revocation/gnunet-service-revocation.c
index 648e82107..0c75c14c3 100644
--- a/src/revocation/gnunet-service-revocation.c
+++ b/src/revocation/gnunet-service-revocation.c
@@ -463,18 +463,14 @@ transmit_task_cb (void *cls,
463 const struct GNUNET_SCHEDULER_TaskContext *tc) 463 const struct GNUNET_SCHEDULER_TaskContext *tc)
464{ 464{
465 struct PeerEntry *peer_entry = cls; 465 struct PeerEntry *peer_entry = cls;
466 uint16_t salt;
467 466
468 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 467 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
469 "Starting set exchange with peer `%s'\n", 468 "Starting set exchange with peer `%s'\n",
470 GNUNET_i2s (&peer_entry->id)); 469 GNUNET_i2s (&peer_entry->id));
471
472 salt = (uint16_t) GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK,
473 UINT16_MAX);
474 peer_entry->transmit_task = GNUNET_SCHEDULER_NO_TASK; 470 peer_entry->transmit_task = GNUNET_SCHEDULER_NO_TASK;
475 peer_entry->so = GNUNET_SET_prepare (&peer_entry->id, 471 peer_entry->so = GNUNET_SET_prepare (&peer_entry->id,
476 &revocation_set_union_app_id, 472 &revocation_set_union_app_id,
477 NULL, salt, 473 NULL,
478 GNUNET_SET_RESULT_ADDED, 474 GNUNET_SET_RESULT_ADDED,
479 &add_revocation, 475 &add_revocation,
480 peer_entry); 476 peer_entry);