diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-09-06 10:03:45 +0200 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-09-06 10:03:45 +0200 |
commit | 68bc1dd88a4de48736c289e0ed5871f4cb72a908 (patch) | |
tree | cd3febffd183fbc600b878d2d431225c764afddc | |
parent | e1b7792a233ef94b2d8639ce5333e3f32410424d (diff) | |
download | merchant-68bc1dd88a4de48736c289e0ed5871f4cb72a908.tar.gz merchant-68bc1dd88a4de48736c289e0ed5871f4cb72a908.tar.bz2 merchant-68bc1dd88a4de48736c289e0ed5871f4cb72a908.zip |
init btoken
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-instances-ID-token.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-instances-ID-token.c b/src/backend/taler-merchant-httpd_private-post-instances-ID-token.c index 74de6563..28a521a4 100644 --- a/src/backend/taler-merchant-httpd_private-post-instances-ID-token.c +++ b/src/backend/taler-merchant-httpd_private-post-instances-ID-token.c @@ -72,6 +72,9 @@ TMH_private_post_instances_ID_token (const struct TMH_RequestHandler *rh, if (GNUNET_OK != res) return (GNUNET_NO == res) ? MHD_YES : MHD_NO; } + GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE, + &btoken, + sizeof (btoken)); expiration_time = GNUNET_TIME_relative_to_timestamp (duration); if (0 == strcasecmp (scope, "readonly")) |