diff options
Diffstat (limited to 'fp_priv.c')
-rw-r--r-- | fp_priv.c | 35 |
1 files changed, 27 insertions, 8 deletions
@@ -226,7 +226,9 @@ fp_priv_recv_outcome (struct BRANDT_Auction *ad, if (buflen != (ad->n * ad->k * (2 * sizeof (struct ec_mpi) + sizeof (*proof2)))) { - weprintf ("wrong size of received outcome"); + GNUNET_log_from (GNUNET_ERROR_TYPE_WARNING, + "libbrandt", + "wrong size of received outcome\n"); goto quit; } @@ -243,7 +245,9 @@ fp_priv_recv_outcome (struct BRANDT_Auction *ad, ad->delta3[sender][i][j], proof2)) { - weprintf ("wrong zkp2 for gamma, delta received"); + GNUNET_log_from (GNUNET_ERROR_TYPE_WARNING, + "libbrandt", + "wrong zkp2 for gamma, delta received\n"); goto quit; } ec_point_copy (ad->gamma3[sender][i][j], gamma); @@ -420,7 +424,10 @@ fp_priv_recv_decryption_seller (struct BRANDT_Auction *ad, if (buflen != (ad->n * ad->k * (sizeof (struct ec_mpi) + sizeof (*proof2)))) { - weprintf ("wrong size of received outcome decryption from bidder"); + GNUNET_log_from ( + GNUNET_ERROR_TYPE_WARNING, + "libbrandt", + "wrong size of received outcome decryption from bidder\n"); goto quit; } @@ -436,7 +443,9 @@ fp_priv_recv_decryption_seller (struct BRANDT_Auction *ad, ec_gen, proof2)) { - weprintf ("wrong zkp2 for phi, y received from bidder"); + GNUNET_log_from (GNUNET_ERROR_TYPE_WARNING, + "libbrandt", + "wrong zkp2 for phi, y received from bidder\n"); goto quit; } @@ -469,7 +478,10 @@ fp_priv_recv_decryption_bidder (struct BRANDT_Auction *ad, if (buflen != ((ad->n - 1) * ad->n * ad->k * (sizeof (struct ec_mpi) + sizeof (*proof2)))) { - weprintf ("wrong size of received outcome decryption from seller"); + GNUNET_log_from ( + GNUNET_ERROR_TYPE_WARNING, + "libbrandt", + "wrong size of received outcome decryption from seller\n"); goto quit; } @@ -498,7 +510,10 @@ fp_priv_recv_decryption_bidder (struct BRANDT_Auction *ad, ec_gen, proof2)) { - weprintf ("wrong zkp2 for phi, y received from seller"); + GNUNET_log_from ( + GNUNET_ERROR_TYPE_WARNING, + "libbrandt", + "wrong zkp2 for phi, y received from seller\n"); goto quit; } ec_point_copy (ad->phi3[h][i][j], phi); @@ -554,12 +569,16 @@ fp_priv_determine_outcome (struct BRANDT_Auction *ad, { if (-1 != price) { - weprintf ("multiple winning prices detected"); + GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, + "libbrandt", + "multiple winning prices detected\n"); return NULL; } if (-1 != winner) { - weprintf ("multiple winners detected"); + GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, + "libbrandt", + "multiple winners detected\n"); return NULL; } price = j; |