summaryrefslogtreecommitdiff
path: root/src/util/payto.c
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2021-10-25 18:37:06 +0200
committerChristian Grothoff <christian@grothoff.org>2021-10-27 09:23:13 +0200
commit74234f75a41222f6a630106be75a799f4f02ec1d (patch)
tree0462b4a2c46d157cdeb07236c0b94962c9e185d9 /src/util/payto.c
parentf0951d34ddd525a04bcb9daabbc55bd1ced2575e (diff)
downloadexchange-74234f75a41222f6a630106be75a799f4f02ec1d.tar.gz
exchange-74234f75a41222f6a630106be75a799f4f02ec1d.tar.bz2
exchange-74234f75a41222f6a630106be75a799f4f02ec1d.zip
-work on FTBFS
Diffstat (limited to 'src/util/payto.c')
-rw-r--r--src/util/payto.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/util/payto.c b/src/util/payto.c
index 26872f1ee..bc8370c40 100644
--- a/src/util/payto.c
+++ b/src/util/payto.c
@@ -260,7 +260,22 @@ void
TALER_payto_hash (const char *payto,
struct TALER_PaytoHash *h_payto)
{
+ /* FIXME: 0.8 had TWO WAYS to hash a payto!
+ one for the exchange, the other
+ for merchants (i.e. reserve closing).
+ I think we should unify... */
+#if OLD_EXCHANGE_WAY
+ GNUNET_assert (GNUNET_YES ==
+ GNUNET_CRYPTO_kdf (hc,
+ sizeof (*hc),
+ payto_uri,
+ strlen (payto_uri) + 1,
+ "exchange-wire-signature",
+ strlen ("exchange-wire-signature"),
+ NULL, 0));
+#else
GNUNET_CRYPTO_hash (payto,
strlen (payto) + 1,
&h_payto->hash);
+#endif
}