summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-09-29 23:04:38 +0200
committerChristian Grothoff <christian@grothoff.org>2021-09-29 23:04:38 +0200
commit34bf2607b36806d4c21fc0a706e688c65009ca5a (patch)
tree34fee669c0e5cf815ff4704a9b425e49428b8526 /src
parent261c1836e905be018d83dbaea7b958c5b2b2d727 (diff)
downloadanastasis-gtk-34bf2607b36806d4c21fc0a706e688c65009ca5a.tar.gz
anastasis-gtk-34bf2607b36806d4c21fc0a706e688c65009ca5a.tar.bz2
anastasis-gtk-34bf2607b36806d4c21fc0a706e688c65009ca5a.zip
-switch to 8 digits
Diffstat (limited to 'src')
-rw-r--r--src/anastasis/anastasis-gtk_handle-challenge-totp.c2
-rw-r--r--src/anastasis/anastasis-gtk_handle-method-totp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/anastasis/anastasis-gtk_handle-challenge-totp.c b/src/anastasis/anastasis-gtk_handle-challenge-totp.c
index c9a4ad2..61b8220 100644
--- a/src/anastasis/anastasis-gtk_handle-challenge-totp.c
+++ b/src/anastasis/anastasis-gtk_handle-challenge-totp.c
@@ -103,7 +103,7 @@ anastasis_gtk_c_totp_dialog_answer_entry_changed_cb (GtkEntry *entry,
"anastasis_gtk_c_totp_entry"));
as = gtk_entry_get_text (a);
ok = ( (NULL != as) &&
- (6 == strlen (as)) &&
+ (8 == strlen (as)) &&
(1 == sscanf (as,
"%u%c",
&pin,
diff --git a/src/anastasis/anastasis-gtk_handle-method-totp.c b/src/anastasis/anastasis-gtk_handle-method-totp.c
index 0863f0b..34cdbc4 100644
--- a/src/anastasis/anastasis-gtk_handle-method-totp.c
+++ b/src/anastasis/anastasis-gtk_handle-method-totp.c
@@ -116,7 +116,7 @@ refresh_totp (GtkBuilder *builder)
sizeof (totp),
base_sec);
GNUNET_asprintf (&uri,
- "otpauth://totp/%s?secret=%s",
+ "otpauth://totp/%s?digits=8&secret=%s",
u_name,
base_sec);
GNUNET_free (u_name);