diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2016-07-13 14:08:49 +0200 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-07-13 14:08:49 +0200 |
commit | edaf7f117a85736a8ca10ed4ee6345aafcc7007b (patch) | |
tree | 8ba2b8fca33e088cce7dc91198ae9a1c7d1529ac /crypto.c | |
parent | 6db16591959229cfec0a7655988ee2bfdd1e2e7a (diff) |
fix ecc_dlog usage
Diffstat (limited to 'crypto.c')
-rw-r--r-- | crypto.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } } |