diff options
Diffstat (limited to 'src/escrow/gnunet-escrow.c')
-rw-r--r-- | src/escrow/gnunet-escrow.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/escrow/gnunet-escrow.c b/src/escrow/gnunet-escrow.c index 2d6d4d141..e66c43046 100644 --- a/src/escrow/gnunet-escrow.c +++ b/src/escrow/gnunet-escrow.c | |||
@@ -209,9 +209,7 @@ put_cb (void *cls, | |||
209 | } | 209 | } |
210 | else | 210 | else |
211 | { | 211 | { |
212 | anchorString = GNUNET_ESCROW_anchor_data_to_string (escrow_handle, | 212 | anchorString = GNUNET_ESCROW_anchor_data_to_string (escrowAnchor); |
213 | escrowAnchor, | ||
214 | method); | ||
215 | 213 | ||
216 | fprintf (stdout, "Escrow finished! Please keep the following anchor " | 214 | fprintf (stdout, "Escrow finished! Please keep the following anchor " |
217 | "in order to restore the key later!\n%s\n", anchorString); | 215 | "in order to restore the key later!\n%s\n", anchorString); |
@@ -458,13 +456,8 @@ run (void *cls, | |||
458 | } | 456 | } |
459 | 457 | ||
460 | /* determine method */ | 458 | /* determine method */ |
461 | if (!strcmp (plaintext_string, method_name)) | 459 | method = GNUNET_ESCROW_method_string_to_number (method_name); |
462 | method = GNUNET_ESCROW_KEY_PLAINTEXT; | 460 | if (GNUNET_ESCROW_KEY_NONE == method) |
463 | else if (!strcmp (gns_string, method_name)) | ||
464 | method = GNUNET_ESCROW_KEY_GNS; | ||
465 | else if (!strcmp (anastasis_string, method_name)) | ||
466 | method = GNUNET_ESCROW_KEY_ANASTASIS; | ||
467 | else | ||
468 | { | 461 | { |
469 | ret = 1; | 462 | ret = 1; |
470 | fprintf (stderr, _ ("unknown method name!\n")); | 463 | fprintf (stderr, _ ("unknown method name!\n")); |
@@ -476,9 +469,7 @@ run (void *cls, | |||
476 | if (NULL != anchor_string) | 469 | if (NULL != anchor_string) |
477 | { | 470 | { |
478 | /* parse anchor_string according to method */ | 471 | /* parse anchor_string according to method */ |
479 | anchor = GNUNET_ESCROW_anchor_string_to_data (escrow_handle, | 472 | anchor = GNUNET_ESCROW_anchor_string_to_data (anchor_string); |
480 | anchor_string, | ||
481 | method); | ||
482 | if (NULL == anchor) | 473 | if (NULL == anchor) |
483 | { | 474 | { |
484 | ret = 1; | 475 | ret = 1; |