summaryrefslogtreecommitdiff
path: root/src/exchange-tools
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-06-07 15:02:08 +0200
committerChristian Grothoff <christian@grothoff.org>2022-06-07 15:02:16 +0200
commitb9a30d29cb91ec66c3bb8d956640d20e641b6a4d (patch)
tree4ad72e722981bb1ef68a643a7f9cff6f1323497b /src/exchange-tools
parent013942ba917958d31a9923f612f4c0f388f7b178 (diff)
downloadexchange-b9a30d29cb91ec66c3bb8d956640d20e641b6a4d.tar.gz
exchange-b9a30d29cb91ec66c3bb8d956640d20e641b6a4d.tar.bz2
exchange-b9a30d29cb91ec66c3bb8d956640d20e641b6a4d.zip
-fix minor bugs
Diffstat (limited to 'src/exchange-tools')
-rw-r--r--src/exchange-tools/taler-crypto-worker.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/exchange-tools/taler-crypto-worker.c b/src/exchange-tools/taler-crypto-worker.c
index d5ba4fee..a1db1e81 100644
--- a/src/exchange-tools/taler-crypto-worker.c
+++ b/src/exchange-tools/taler-crypto-worker.c
@@ -270,25 +270,27 @@ run (void *cls,
&msg_size),
GNUNET_JSON_spec_end ()
};
- if (GNUNET_OK != GNUNET_JSON_parse (args,
- eddsa_sign_spec,
- NULL,
- NULL))
+ if (GNUNET_OK !=
+ GNUNET_JSON_parse (args,
+ eddsa_sign_spec,
+ NULL,
+ NULL))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"malformed op args\n");
global_ret = 1;
return;
}
- GNUNET_CRYPTO_eddsa_sign_ (
- &priv,
- msg,
- &sig
- );
+ GNUNET_assert (GNUNET_OK ==
+ GNUNET_CRYPTO_eddsa_sign_ (
+ &priv,
+ msg,
+ &sig));
resp = GNUNET_JSON_PACK (
GNUNET_JSON_pack_data_auto ("sig", &sig)
);
- json_dumpf (resp, stdout, JSON_COMPACT);
+ json_dumpf (resp, stdout,
+ JSON_COMPACT);
printf ("\n");
fflush (stdout);
GNUNET_log (GNUNET_ERROR_TYPE_INFO,