aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lib.c')
-rw-r--r--lib/lib.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/lib.c b/lib/lib.c
index dfa4499f..1aa9b80d 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -870,6 +870,18 @@ void base64_init(char *p)
*(p++) = '/';
}
+// Init base32 table
+
+void base32_init(char *p)
+{
+ int i;
+
+ for (i = 'A'; i != '8'; i++) {
+ if (i == 'Z'+1) i = '2';
+ *(p++) = i;
+ }
+}
+
int yesno(int def)
{
return fyesno(stdin, def);