mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-21 06:56:22 +00:00
Added UI function to get PGP passphrase
This commit is contained in:
@@ -2101,9 +2101,29 @@ ui_win_unread(int index)
|
||||
char *
|
||||
ui_ask_password(void)
|
||||
{
|
||||
status_bar_get_password();
|
||||
status_bar_update_virtual();
|
||||
return inp_get_password();
|
||||
status_bar_get_password();
|
||||
status_bar_update_virtual();
|
||||
return inp_get_password();
|
||||
}
|
||||
|
||||
char *
|
||||
ui_ask_pgp_passphrase(const char *hint, int prev_fail)
|
||||
{
|
||||
ProfWin *current = wins_get_current();
|
||||
|
||||
if (prev_fail) {
|
||||
win_print(current, '!', 0, NULL, 0, 0, NULL, "Incorrect passphrase");
|
||||
}
|
||||
|
||||
if (hint) {
|
||||
win_vprint(current, '!', 0, NULL, 0, 0, NULL, "Enter PGP key passphrase for %s", hint);
|
||||
} else {
|
||||
win_print(current, '!', 0, NULL, 0, 0, NULL, "Enter PGP key passphrase");
|
||||
}
|
||||
|
||||
status_bar_get_password();
|
||||
status_bar_update_virtual();
|
||||
return inp_get_password();
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user