summaryrefslogtreecommitdiff
path: root/src/util/payto.c
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2021-10-25 17:19:41 +0200
committerChristian Grothoff <christian@grothoff.org>2021-10-27 09:23:13 +0200
commitf7d08e8c2bbd6c5eaa73f339f551683c9d93ebeb (patch)
tree13b04b5bcfca900f89ecdb1f979e6602ba1f0522 /src/util/payto.c
parent58ea04167ca46e7ef82d25900cae731741854279 (diff)
downloadexchange-f7d08e8c2bbd6c5eaa73f339f551683c9d93ebeb.tar.gz
exchange-f7d08e8c2bbd6c5eaa73f339f551683c9d93ebeb.tar.bz2
exchange-f7d08e8c2bbd6c5eaa73f339f551683c9d93ebeb.zip
-work on FTBFS;
Diffstat (limited to 'src/util/payto.c')
-rw-r--r--src/util/payto.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util/payto.c b/src/util/payto.c
index 58f1bf635..26872f1ee 100644
--- a/src/util/payto.c
+++ b/src/util/payto.c
@@ -254,3 +254,13 @@ TALER_payto_validate (const char *payto_uri)
return NULL;
}
+
+
+void
+TALER_payto_hash (const char *payto,
+ struct TALER_PaytoHash *h_payto)
+{
+ GNUNET_CRYPTO_hash (payto,
+ strlen (payto) + 1,
+ &h_payto->hash);
+}