diff options
Diffstat (limited to 'src/lib/testing_api_cmd_payback.c')
-rw-r--r-- | src/lib/testing_api_cmd_payback.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/lib/testing_api_cmd_payback.c b/src/lib/testing_api_cmd_payback.c index de394fe26..c69d1d089 100644 --- a/src/lib/testing_api_cmd_payback.c +++ b/src/lib/testing_api_cmd_payback.c | |||
@@ -209,7 +209,7 @@ payback_cb (void *cls, | |||
209 | } | 209 | } |
210 | 210 | ||
211 | reserve_cmd = TALER_TESTING_interpreter_lookup_command | 211 | reserve_cmd = TALER_TESTING_interpreter_lookup_command |
212 | (is, cref); | 212 | (is, cref); |
213 | GNUNET_free (cref); | 213 | GNUNET_free (cref); |
214 | 214 | ||
215 | if (NULL == reserve_cmd) | 215 | if (NULL == reserve_cmd) |
@@ -289,7 +289,7 @@ payback_cb (void *cls, | |||
289 | return; | 289 | return; |
290 | } | 290 | } |
291 | if (GNUNET_OK != TALER_TESTING_get_trait_reserve_priv | 291 | if (GNUNET_OK != TALER_TESTING_get_trait_reserve_priv |
292 | (reserve_cmd, idx, &reserve_priv)) | 292 | (reserve_cmd, idx, &reserve_priv)) |
293 | { | 293 | { |
294 | GNUNET_break (0); | 294 | GNUNET_break (0); |
295 | TALER_TESTING_interpreter_fail (is); | 295 | TALER_TESTING_interpreter_fail (is); |
@@ -348,7 +348,7 @@ payback_run (void *cls, | |||
348 | } | 348 | } |
349 | 349 | ||
350 | coin_cmd = TALER_TESTING_interpreter_lookup_command | 350 | coin_cmd = TALER_TESTING_interpreter_lookup_command |
351 | (is, cref); | 351 | (is, cref); |
352 | GNUNET_free (cref); | 352 | GNUNET_free (cref); |
353 | 353 | ||
354 | if (NULL == coin_cmd) | 354 | if (NULL == coin_cmd) |
@@ -359,7 +359,7 @@ payback_run (void *cls, | |||
359 | } | 359 | } |
360 | 360 | ||
361 | if (GNUNET_OK != TALER_TESTING_get_trait_coin_priv | 361 | if (GNUNET_OK != TALER_TESTING_get_trait_coin_priv |
362 | (coin_cmd, idx, &coin_priv)) | 362 | (coin_cmd, idx, &coin_priv)) |
363 | { | 363 | { |
364 | GNUNET_break (0); | 364 | GNUNET_break (0); |
365 | TALER_TESTING_interpreter_fail (is); | 365 | TALER_TESTING_interpreter_fail (is); |
@@ -367,7 +367,7 @@ payback_run (void *cls, | |||
367 | } | 367 | } |
368 | 368 | ||
369 | if (GNUNET_OK != TALER_TESTING_get_trait_blinding_key | 369 | if (GNUNET_OK != TALER_TESTING_get_trait_blinding_key |
370 | (coin_cmd, idx, &blinding_key)) | 370 | (coin_cmd, idx, &blinding_key)) |
371 | { | 371 | { |
372 | GNUNET_break (0); | 372 | GNUNET_break (0); |
373 | TALER_TESTING_interpreter_fail (is); | 373 | TALER_TESTING_interpreter_fail (is); |
@@ -377,7 +377,7 @@ payback_run (void *cls, | |||
377 | planchet.blinding_key = *blinding_key; | 377 | planchet.blinding_key = *blinding_key; |
378 | 378 | ||
379 | if (GNUNET_OK != TALER_TESTING_get_trait_denom_pub | 379 | if (GNUNET_OK != TALER_TESTING_get_trait_denom_pub |
380 | (coin_cmd, idx, &denom_pub)) | 380 | (coin_cmd, idx, &denom_pub)) |
381 | { | 381 | { |
382 | GNUNET_break (0); | 382 | GNUNET_break (0); |
383 | TALER_TESTING_interpreter_fail (is); | 383 | TALER_TESTING_interpreter_fail (is); |
@@ -385,7 +385,7 @@ payback_run (void *cls, | |||
385 | } | 385 | } |
386 | 386 | ||
387 | if (GNUNET_OK != TALER_TESTING_get_trait_denom_sig | 387 | if (GNUNET_OK != TALER_TESTING_get_trait_denom_sig |
388 | (coin_cmd, idx, &coin_sig)) | 388 | (coin_cmd, idx, &coin_sig)) |
389 | { | 389 | { |
390 | GNUNET_break (0); | 390 | GNUNET_break (0); |
391 | TALER_TESTING_interpreter_fail (is); | 391 | TALER_TESTING_interpreter_fail (is); |
@@ -423,7 +423,7 @@ revoke_cleanup (void *cls, | |||
423 | if (NULL != rs->revoke_proc) | 423 | if (NULL != rs->revoke_proc) |
424 | { | 424 | { |
425 | GNUNET_break (0 == GNUNET_OS_process_kill | 425 | GNUNET_break (0 == GNUNET_OS_process_kill |
426 | (rs->revoke_proc, SIGKILL)); | 426 | (rs->revoke_proc, SIGKILL)); |
427 | GNUNET_OS_process_wait (rs->revoke_proc); | 427 | GNUNET_OS_process_wait (rs->revoke_proc); |
428 | GNUNET_OS_process_destroy (rs->revoke_proc); | 428 | GNUNET_OS_process_destroy (rs->revoke_proc); |
429 | rs->revoke_proc = NULL; | 429 | rs->revoke_proc = NULL; |
@@ -506,7 +506,7 @@ revoke_run (void *cls, | |||
506 | rs->is = is; | 506 | rs->is = is; |
507 | /* Get denom pub from trait */ | 507 | /* Get denom pub from trait */ |
508 | coin_cmd = TALER_TESTING_interpreter_lookup_command | 508 | coin_cmd = TALER_TESTING_interpreter_lookup_command |
509 | (is, rs->coin_reference); | 509 | (is, rs->coin_reference); |
510 | 510 | ||
511 | if (NULL == coin_cmd) | 511 | if (NULL == coin_cmd) |
512 | { | 512 | { |
@@ -516,24 +516,24 @@ revoke_run (void *cls, | |||
516 | } | 516 | } |
517 | 517 | ||
518 | GNUNET_assert (GNUNET_OK == TALER_TESTING_get_trait_denom_pub | 518 | GNUNET_assert (GNUNET_OK == TALER_TESTING_get_trait_denom_pub |
519 | (coin_cmd, 0, &denom_pub)); | 519 | (coin_cmd, 0, &denom_pub)); |
520 | 520 | ||
521 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 521 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
522 | "Trying to revoke denom '%s..'\n", | 522 | "Trying to revoke denom '%s..'\n", |
523 | TALER_B2S (&denom_pub->h_key)); | 523 | TALER_B2S (&denom_pub->h_key)); |
524 | 524 | ||
525 | rs->dhks = GNUNET_STRINGS_data_to_string_alloc | 525 | rs->dhks = GNUNET_STRINGS_data_to_string_alloc |
526 | (&denom_pub->h_key, sizeof (struct GNUNET_HashCode)); | 526 | (&denom_pub->h_key, sizeof (struct GNUNET_HashCode)); |
527 | 527 | ||
528 | rs->revoke_proc = GNUNET_OS_start_process | 528 | rs->revoke_proc = GNUNET_OS_start_process |
529 | (GNUNET_NO, | 529 | (GNUNET_NO, |
530 | GNUNET_OS_INHERIT_STD_ALL, | 530 | GNUNET_OS_INHERIT_STD_ALL, |
531 | NULL, NULL, NULL, | 531 | NULL, NULL, NULL, |
532 | "taler-exchange-keyup", | 532 | "taler-exchange-keyup", |
533 | "taler-exchange-keyup", | 533 | "taler-exchange-keyup", |
534 | "-c", rs->config_filename, | 534 | "-c", rs->config_filename, |
535 | "-r", rs->dhks, | 535 | "-r", rs->dhks, |
536 | NULL); | 536 | NULL); |
537 | 537 | ||
538 | if (NULL == rs->revoke_proc) | 538 | if (NULL == rs->revoke_proc) |
539 | { | 539 | { |