gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: left-pad TOTP code with 0s


From: gnunet
Subject: [taler-exchange] branch master updated: left-pad TOTP code with 0s
Date: Sun, 02 Apr 2023 14:12:22 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 979ec38e left-pad TOTP code with 0s
979ec38e is described below

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

    left-pad TOTP code with 0s
---
 src/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
index c5a67450..e52562e3 100644
--- 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);

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]