aboutsummaryrefslogtreecommitdiff
path: root/src/reducer/anastasis_api_redux.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reducer/anastasis_api_redux.c')
-rw-r--r--src/reducer/anastasis_api_redux.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/reducer/anastasis_api_redux.c b/src/reducer/anastasis_api_redux.c
index 1dba576..b66eec3 100644
--- a/src/reducer/anastasis_api_redux.c
+++ b/src/reducer/anastasis_api_redux.c
@@ -493,13 +493,11 @@ notify_waiting (struct ConfigRequest *cr)
493 "authentication_providers", 493 "authentication_providers",
494 provider_list = json_object ())); 494 provider_list = json_object ()));
495 } 495 }
496 provider_list = json_object_get (w->state,
497 "authentication_providers");
498 GNUNET_assert (NULL != provider_list);
499
500 if (TALER_EC_NONE != cr->ec) 496 if (TALER_EC_NONE != cr->ec)
501 { 497 {
502 prov = GNUNET_JSON_PACK ( 498 prov = GNUNET_JSON_PACK (
499 GNUNET_JSON_pack_string ("status",
500 "error"),
503 GNUNET_JSON_pack_uint64 ("error_code", 501 GNUNET_JSON_pack_uint64 ("error_code",
504 cr->ec), 502 cr->ec),
505 GNUNET_JSON_pack_uint64 ("http_status", 503 GNUNET_JSON_pack_uint64 ("http_status",
@@ -525,6 +523,8 @@ notify_waiting (struct ConfigRequest *cr)
525 mj)); 523 mj));
526 } 524 }
527 prov = GNUNET_JSON_PACK ( 525 prov = GNUNET_JSON_PACK (
526 GNUNET_JSON_pack_string ("status",
527 "ok"),
528 GNUNET_JSON_pack_array_steal ("methods", 528 GNUNET_JSON_pack_array_steal ("methods",
529 methods_list), 529 methods_list),
530 TALER_JSON_pack_amount ("annual_fee", 530 TALER_JSON_pack_amount ("annual_fee",
@@ -754,6 +754,7 @@ begin_provider_config_check (const json_t *currencies,
754 &cur), 754 &cur),
755 GNUNET_JSON_spec_end () 755 GNUNET_JSON_spec_end ()
756 }; 756 };
757 json_t *prov;
757 758
758 if (GNUNET_OK != 759 if (GNUNET_OK !=
759 GNUNET_JSON_parse (provider, 760 GNUNET_JSON_parse (provider,
@@ -786,10 +787,14 @@ begin_provider_config_check (const json_t *currencies,
786 if (! found) 787 if (! found)
787 continue; 788 continue;
788 } 789 }
790 prov = GNUNET_JSON_PACK (
791 GNUNET_JSON_pack_string ("status",
792 "not-contacted"));
793 GNUNET_assert (NULL != prov);
789 GNUNET_assert (0 == 794 GNUNET_assert (0 ==
790 json_object_set_new (pl, 795 json_object_set_new (pl,
791 url, 796 url,
792 json_object ())); 797 prov));
793 check_config (url); 798 check_config (url);
794 } 799 }
795 GNUNET_assert (0 == 800 GNUNET_assert (0 ==