diff options
Diffstat (limited to 'src/authorization/anastasis_authorization_plugin_iban.c')
-rw-r--r-- | src/authorization/anastasis_authorization_plugin_iban.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/authorization/anastasis_authorization_plugin_iban.c b/src/authorization/anastasis_authorization_plugin_iban.c index 548b5c0..eee8e7e 100644 --- a/src/authorization/anastasis_authorization_plugin_iban.c +++ b/src/authorization/anastasis_authorization_plugin_iban.c | |||
@@ -20,7 +20,6 @@ | |||
20 | */ | 20 | */ |
21 | #include "platform.h" | 21 | #include "platform.h" |
22 | #include "anastasis_authorization_plugin.h" | 22 | #include "anastasis_authorization_plugin.h" |
23 | #include <taler/taler_bank_service.h> | ||
24 | #include <taler/taler_mhd_lib.h> | 23 | #include <taler/taler_mhd_lib.h> |
25 | #include <taler/taler_json_lib.h> | 24 | #include <taler/taler_json_lib.h> |
26 | #include <gnunet/gnunet_db_lib.h> | 25 | #include <gnunet/gnunet_db_lib.h> |
@@ -36,11 +35,6 @@ struct IBAN_Context | |||
36 | { | 35 | { |
37 | 36 | ||
38 | /** | 37 | /** |
39 | * Authentication data to access our bank account. | ||
40 | */ | ||
41 | struct TALER_BANK_AuthenticationData auth; | ||
42 | |||
43 | /** | ||
44 | * Messages of the plugin, read from a resource file. | 38 | * Messages of the plugin, read from a resource file. |
45 | */ | 39 | */ |
46 | json_t *messages; | 40 | json_t *messages; |
@@ -533,17 +527,6 @@ libanastasis_plugin_authorization_iban_init (void *cls) | |||
533 | GNUNET_free (fn); | 527 | GNUNET_free (fn); |
534 | } | 528 | } |
535 | ctx->ac = ac; | 529 | ctx->ac = ac; |
536 | if (GNUNET_OK != | ||
537 | TALER_BANK_auth_parse_cfg (cfg, | ||
538 | "authorization-iban", | ||
539 | &ctx->auth)) | ||
540 | { | ||
541 | json_decref (ctx->messages); | ||
542 | GNUNET_free (ctx->business_iban); | ||
543 | GNUNET_free (ctx->business_name); | ||
544 | GNUNET_free (ctx); | ||
545 | return NULL; | ||
546 | } | ||
547 | plugin = GNUNET_new (struct ANASTASIS_AuthorizationPlugin); | 530 | plugin = GNUNET_new (struct ANASTASIS_AuthorizationPlugin); |
548 | plugin->payment_plugin_managed = true; | 531 | plugin->payment_plugin_managed = true; |
549 | plugin->code_validity_period = GNUNET_TIME_UNIT_MONTHS; | 532 | plugin->code_validity_period = GNUNET_TIME_UNIT_MONTHS; |
@@ -571,7 +554,6 @@ libanastasis_plugin_authorization_iban_done (void *cls) | |||
571 | struct ANASTASIS_AuthorizationPlugin *plugin = cls; | 554 | struct ANASTASIS_AuthorizationPlugin *plugin = cls; |
572 | struct IBAN_Context *ctx = plugin->cls; | 555 | struct IBAN_Context *ctx = plugin->cls; |
573 | 556 | ||
574 | TALER_BANK_auth_free (&ctx->auth); | ||
575 | json_decref (ctx->messages); | 557 | json_decref (ctx->messages); |
576 | GNUNET_free (ctx->business_iban); | 558 | GNUNET_free (ctx->business_iban); |
577 | GNUNET_free (ctx->business_name); | 559 | GNUNET_free (ctx->business_name); |