From f4932d94c07d7c0dd9992b6b2d5b562b567d49b0 Mon Sep 17 00:00:00 2001 From: Markus Teich Date: Wed, 23 Nov 2016 23:20:25 +0100 Subject: remove unnecessary description handling and hashing. The hash is not needed since the sellers application is required to sign the description and the bidders application is required to check the signature. Since the arbitrary description used by the application was only used inside this hash, it can be removed as well. --- test_brandt.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'test_brandt.c') diff --git a/test_brandt.c b/test_brandt.c index 1540583..9d91260 100644 --- a/test_brandt.c +++ b/test_brandt.c @@ -305,9 +305,8 @@ quit: static void run_auction (void *arg) { - const char description[] = "test description for test_auction"; - void *desc; - size_t desc_len; + void *desc; + size_t desc_len; tcase.ad[tcase.n] = BRANDT_new (&cb_result, &cb_broadcast, @@ -315,8 +314,6 @@ run_auction (void *arg) &tcase.id[tcase.n], &desc, &desc_len, - description, - sizeof (description), GNUNET_TIME_absolute_get (), GNUNET_TIME_UNIT_MINUTES, tcase.k, /* number of prizes */ @@ -336,8 +333,6 @@ run_auction (void *arg) &tcase.id[i], desc, desc_len, - description, - sizeof (description), tcase.bids[i]); /* bid */ if (!tcase.ad[i]) { -- cgit v1.2.3