1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-07 12:16:34 +01:00

Add password_eval option to skip password prompt

Runs a command and uses its output as the password. This can be used for
getting the password from a password manager such as pass.
This commit is contained in:
Antoine Kaufmann
2016-01-19 13:45:52 -08:00
parent 74416b4b58
commit ac6d8ff89c
4 changed files with 70 additions and 3 deletions

View File

@@ -30,6 +30,8 @@
/* Represents line_* hints max strlen */
#define LINE_HINT_MAX 3
#define PASSWORD_EVAL_MAX 512
/* holds user setting values */
struct user_settings {
int autolog; /* boolean */
@@ -53,6 +55,7 @@ struct user_settings {
char download_path[PATH_MAX];
char chatlogs_path[PATH_MAX];
char avatar_path[PATH_MAX];
char password_eval[PASSWORD_EVAL_MAX];
int key_next_tab;
int key_prev_tab;