summaryrefslogtreecommitdiffstats
path: root/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/misc.h b/misc.h
index 5b7f227..f01695f 100644
--- a/misc.h
+++ b/misc.h
@@ -227,7 +227,11 @@ struct user_pass
bool nocache;
/* max length of username/password */
-# define USER_PASS_LEN 128
+# ifdef ENABLE_PKCS11
+# define USER_PASS_LEN 4096
+# else
+# define USER_PASS_LEN 128
+# endif
char username[USER_PASS_LEN];
char password[USER_PASS_LEN];
};
@@ -242,6 +246,7 @@ bool get_console_input (const char *prompt, const bool echo, char *input, const
#define GET_USER_PASS_PASSWORD_ONLY (1<<2)
#define GET_USER_PASS_NEED_OK (1<<3)
#define GET_USER_PASS_NOFATAL (1<<4)
+#define GET_USER_PASS_NEED_STR (1<<5)
bool get_user_pass (struct user_pass *up,
const char *auth_file,