diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2016-12-02 09:34:25 +0100 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-12-02 09:34:25 +0100 |
commit | 56b43dab7ff80acc4cd0e7ad3057abd5e6bad680 (patch) | |
tree | 74b6a5f1ff6f8994582926112b4102574784f524 /fp_pub.c | |
parent | aee7167739e666ea94c3b68c58a0f7aa1ede238e (diff) | |
download | libbrandt-56b43dab7ff80acc4cd0e7ad3057abd5e6bad680.tar.gz libbrandt-56b43dab7ff80acc4cd0e7ad3057abd5e6bad680.zip |
migrate to GNUNET_log
Diffstat (limited to 'fp_pub.c')
-rw-r--r-- | fp_pub.c | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -216,7 +216,9 @@ fp_pub_recv_outcome (struct BRANDT_Auction *ad, | |||
216 | 216 | ||
217 | if (buflen != (ad->k * (2 * sizeof (struct ec_mpi) + sizeof (*proof2)))) | 217 | if (buflen != (ad->k * (2 * sizeof (struct ec_mpi) + sizeof (*proof2)))) |
218 | { | 218 | { |
219 | weprintf ("wrong size of received outcome"); | 219 | GNUNET_log_from (GNUNET_ERROR_TYPE_WARNING, |
220 | "libbrandt", | ||
221 | "wrong size of received outcome\n"); | ||
220 | goto quit; | 222 | goto quit; |
221 | } | 223 | } |
222 | 224 | ||
@@ -231,7 +233,9 @@ fp_pub_recv_outcome (struct BRANDT_Auction *ad, | |||
231 | ad->delta2[sender][j], | 233 | ad->delta2[sender][j], |
232 | proof2)) | 234 | proof2)) |
233 | { | 235 | { |
234 | weprintf ("wrong zkp2 for gamma, delta received"); | 236 | GNUNET_log_from (GNUNET_ERROR_TYPE_WARNING, |
237 | "libbrandt", | ||
238 | "wrong zkp2 for gamma, delta received\n"); | ||
235 | goto quit; | 239 | goto quit; |
236 | } | 240 | } |
237 | ec_point_copy (ad->gamma2[sender][j], gamma); | 241 | ec_point_copy (ad->gamma2[sender][j], gamma); |
@@ -350,7 +354,9 @@ fp_pub_recv_decryption (struct BRANDT_Auction *ad, | |||
350 | 354 | ||
351 | if (buflen != (ad->k * (sizeof (struct ec_mpi) + sizeof (*proof2)))) | 355 | if (buflen != (ad->k * (sizeof (struct ec_mpi) + sizeof (*proof2)))) |
352 | { | 356 | { |
353 | weprintf ("wrong size of received outcome decryption"); | 357 | GNUNET_log_from (GNUNET_ERROR_TYPE_WARNING, |
358 | "libbrandt", | ||
359 | "wrong size of received outcome decryption\n"); | ||
354 | goto quit; | 360 | goto quit; |
355 | } | 361 | } |
356 | 362 | ||
@@ -364,7 +370,9 @@ fp_pub_recv_decryption (struct BRANDT_Auction *ad, | |||
364 | ec_gen, | 370 | ec_gen, |
365 | proof2)) | 371 | proof2)) |
366 | { | 372 | { |
367 | weprintf ("wrong zkp2 for phi, y received"); | 373 | GNUNET_log_from (GNUNET_ERROR_TYPE_WARNING, |
374 | "libbrandt", | ||
375 | "wrong zkp2 for phi, y received\n"); | ||
368 | goto quit; | 376 | goto quit; |
369 | } | 377 | } |
370 | ec_point_copy (ad->phi2[sender][j], phi); | 378 | ec_point_copy (ad->phi2[sender][j], phi); |