diff options
Diffstat (limited to '')
-rw-r--r-- | misc.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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, |