exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 979ec38ec44bf223c6578bffd5201d2de18a89c7
parent e99450e2e2c28e6ae8c68b40e3f99d4a1ff3e63e
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Sun,  2 Apr 2023 14:12:13 +0200

left-pad TOTP code with 0s

Diffstat:
Msrc/util/crypto_confirmation.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/crypto_confirmation.c b/src/util/crypto_confirmation.c @@ -189,7 +189,7 @@ executive_totp (void *h_key, if (NULL == ret) { GNUNET_asprintf (&ret, - "%llu", + "%08llu", (unsigned long long) code); } else @@ -197,7 +197,7 @@ executive_totp (void *h_key, char *tmp; GNUNET_asprintf (&tmp, - "%s\n%llu", + "%s\n%08llu", ret, (unsigned long long) code); GNUNET_free (ret);