summaryrefslogtreecommitdiff
path: root/src/anastasis/anastasis-gtk_handle-method-totp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/anastasis/anastasis-gtk_handle-method-totp.c')
-rw-r--r--src/anastasis/anastasis-gtk_handle-method-totp.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/anastasis/anastasis-gtk_handle-method-totp.c b/src/anastasis/anastasis-gtk_handle-method-totp.c
index c4faa5c..0863f0b 100644
--- a/src/anastasis/anastasis-gtk_handle-method-totp.c
+++ b/src/anastasis/anastasis-gtk_handle-method-totp.c
@@ -38,7 +38,7 @@ static char totp[32];
/**
- * Compute RFC 4648 base32 encoding of @a val and write
+ * Compute RFC 3548 base32 encoding of @a val and write
* result to @a enc.
*
* @param val value to encode
@@ -51,9 +51,9 @@ base32enc (const void *val,
char *enc)
{
/**
- * 32 characters for encoding, using RFC 4648.
+ * 32 characters for encoding, using RFC 3548.
*/
- static char *encTable__ = "0123456789ABCDEFGHIJKLMNOPQRSTV";
+ static char *encTable__ = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
unsigned int wpos;
unsigned int rpos;
unsigned int bits;
@@ -130,10 +130,10 @@ refresh_totp (GtkBuilder *builder)
gtk_image_set_from_pixbuf (img,
pb);
g_object_unref (pb);
- gtk_widget_set_sensitive (
- GTK_WIDGET (gtk_builder_get_object (builder,
- "anastasis_gtk_b_totp_dialog_btn_ok")),
- true);
+ gtk_widget_set_sensitive (
+ GTK_WIDGET (gtk_builder_get_object (builder,
+ "anastasis_gtk_b_totp_dialog_btn_ok")),
+ true);
}
}
@@ -206,7 +206,7 @@ anastasis_gtk_b_totp_dialog_name_entry_changed_cb (GtkEntry *entry,
*/
void
anastasis_gtk_btn_add_auth_totp_clicked_cb (GObject *object,
- gpointer user_data)
+ gpointer user_data)
{
GtkWidget *ad;
GtkBuilder *builder;