gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-exchange] branch master updated: improve error messa


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: improve error message for wire response files
Date: Wed, 29 May 2019 17:28:49 +0200

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

dold pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 535a6566 improve error message for wire response files
535a6566 is described below

commit 535a6566259370d992a29f0d29c05b045ff93afc
Author: Florian Dold <address@hidden>
AuthorDate: Wed May 29 17:28:28 2019 +0200

    improve error message for wire response files
---
 src/exchange/taler-exchange-httpd_validation.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/exchange/taler-exchange-httpd_validation.c 
b/src/exchange/taler-exchange-httpd_validation.c
index aa97af2f..ba34de80 100644
--- a/src/exchange/taler-exchange-httpd_validation.c
+++ b/src/exchange/taler-exchange-httpd_validation.c
@@ -157,6 +157,17 @@ load_account (void *cls,
       return;
     }
     GNUNET_free (url);
+    /* Provide friendly error message if user forgot to sign wire response. */
+    if (NULL == json_object_get (wire_s, "master_sig"))
+    {
+      GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                  "Wire response file `%s' has not been signed."
+                  " Use taler-exchange-wire to sign it.\n",
+                  ai->wire_response_filename);
+      json_decref (wire_s);
+      *ret = GNUNET_SYSERR;
+      return;
+    }
     if (GNUNET_OK !=
         TALER_JSON_exchange_wire_signature_check (wire_s,
                                                   &TEH_master_public_key))

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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