From edaf7f117a85736a8ca10ed4ee6345aafcc7007b Mon Sep 17 00:00:00 2001 From: Markus Teich Date: Wed, 13 Jul 2016 14:08:49 +0200 Subject: [PATCH] fix ecc_dlog usage --- crypto.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto.c b/crypto.c index 3140ec6..95e2297 100644 --- a/crypto.c +++ b/crypto.c @@ -62,7 +62,7 @@ static gcry_ctx_t ec_ctx; static gcry_mpi_point_t ec_gen; static gcry_mpi_point_t ec_zero; static gcry_mpi_t ec_n; -static GNUNET_CRYPTO_EccDlogContext *ec_dlogctx; +static struct GNUNET_CRYPTO_EccDlogContext *ec_dlogctx; /** @@ -72,7 +72,7 @@ static GNUNET_CRYPTO_EccDlogContext *ec_dlogctx; * @param[in] dlogctx Pointer to the prepared dlog context. */ void -brandt_crypto_init (GNUNET_CRYPTO_EccDlogContext *dlogctx) +brandt_crypto_init (struct GNUNET_CRYPTO_EccDlogContext *dlogctx) { gcry_error_t rc; @@ -1135,7 +1135,7 @@ fp_pub_determine_outcome (struct BRANDT_Auction *ad, uint16_t *winner) if (gcry_mpi_test_bit (dlog, i)) { if (winner) - winner = i; + *winner = i; break; } }