Prompt user to allow or deny untrusted TLS certificates
This commit is contained in:
@@ -2106,6 +2106,13 @@ ui_ask_password(void)
|
||||
return inp_get_password();
|
||||
}
|
||||
|
||||
char *
|
||||
ui_get_line(void)
|
||||
{
|
||||
status_bar_update_virtual();
|
||||
return inp_get_line();
|
||||
}
|
||||
|
||||
char *
|
||||
ui_ask_pgp_passphrase(const char *hint, int prev_fail)
|
||||
{
|
||||
|
||||
@@ -225,6 +225,21 @@ inp_close(void)
|
||||
rl_callback_handler_remove();
|
||||
}
|
||||
|
||||
char *
|
||||
inp_get_line(void)
|
||||
{
|
||||
werase(inp_win);
|
||||
wmove(inp_win, 0, 0);
|
||||
_inp_win_update_virtual();
|
||||
doupdate();
|
||||
char *line = NULL;
|
||||
while (!line) {
|
||||
line = inp_readline();
|
||||
}
|
||||
status_bar_clear();
|
||||
return line;
|
||||
}
|
||||
|
||||
char*
|
||||
inp_get_password(void)
|
||||
{
|
||||
@@ -275,6 +290,7 @@ _inp_write(char *line, int offset)
|
||||
_inp_win_handle_scroll();
|
||||
|
||||
_inp_win_update_virtual();
|
||||
doupdate();
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
@@ -47,5 +47,6 @@ void inp_win_clear(void);
|
||||
void inp_win_resize(void);
|
||||
void inp_put_back(void);
|
||||
char* inp_get_password(void);
|
||||
char * inp_get_line(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -102,6 +102,7 @@ win_type_t ui_win_type(int index);
|
||||
void ui_close_win(int index);
|
||||
int ui_win_unread(int index);
|
||||
char * ui_ask_password(void);
|
||||
char * ui_get_line(void);
|
||||
char * ui_ask_pgp_passphrase(const char *hint, int prev_fail);
|
||||
|
||||
void ui_handle_stanza(const char * const msg);
|
||||
|
||||
Reference in New Issue
Block a user