gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] 77/151: finish kyc_start API


From: gnunet
Subject: [taler-exchange] 77/151: finish kyc_start API
Date: Tue, 30 Jul 2024 23:37:27 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

commit 92f069d89d5421da00412a62920471bf26ef777a
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Jul 7 12:02:43 2024 +0200

    finish kyc_start API
---
 src/lib/exchange_api_kyc_start.c | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/src/lib/exchange_api_kyc_start.c b/src/lib/exchange_api_kyc_start.c
index 753916ae6..873edcfa6 100644
--- a/src/lib/exchange_api_kyc_start.c
+++ b/src/lib/exchange_api_kyc_start.c
@@ -93,7 +93,25 @@ handle_kyc_start_finished (void *cls,
     adr.hr.hint = "server offline?";
     break;
   case MHD_HTTP_OK:
-    // FIXME!
+    {
+      struct GNUNET_JSON_Specification spec[] = {
+        GNUNET_JSON_spec_string (
+          "redirect_url",
+          &adr.details.ok.redirect_url),
+        GNUNET_JSON_spec_end ()
+      };
+
+      if (GNUNET_OK !=
+          GNUNET_JSON_parse (json,
+                             spec,
+                             NULL, NULL))
+      {
+        GNUNET_break_op (0);
+        adr.hr.http_status = 0;
+        adr.hr.ec = TALER_EC_GENERIC_REPLY_MALFORMED;
+        break;
+      }
+    }
     break;
   case MHD_HTTP_NOT_FOUND:
     break;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]