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; } }