Prototype for a Smime Function.
More...
Prototype for a Smime Function.
- Parameters
-
menu | Menu |
op | Operation to perform, e.g. OP_GENERIC_SELECT_ENTRY |
- Return values
-
◆ op_exit()
static int op_exit |
( |
struct SmimeData * |
sd, |
|
|
int |
op |
|
) |
| |
|
static |
Exit this menu - Implements smime_function_t -.
Definition at line 44 of file smime_functions.c.
45{
48}
@ FR_SUCCESS
Valid function - successfully performed.
bool done
Should we close the Dialog?
◆ op_generic_select_entry()
static int op_generic_select_entry |
( |
struct SmimeData * |
sd, |
|
|
int |
op |
|
) |
| |
|
static |
Select the current entry - Implements smime_function_t -.
Definition at line 53 of file smime_functions.c.
54{
57 if (cur_key->
trust !=
't')
58 {
59 const char *s = "";
60 switch (cur_key->
trust)
61 {
62 case 'e':
63 case 'i':
64 case 'r':
65 s =
_(
"ID is expired/disabled/revoked. Do you really want to use the key?");
66 break;
67 case 'u':
68 s =
_(
"ID has undefined validity. Do you really want to use the key?");
69 break;
70 case 'v':
71 s =
_(
"ID is not trusted. Do you really want to use the key?");
72 break;
73 }
74
75 char buf[1024] = { 0 };
76 snprintf(buf, sizeof(buf), "%s", s);
77
79 {
82 }
83 }
84
88}
@ FR_NO_ACTION
Valid function - no action performed.
void mutt_clear_error(void)
Clear the message line (bottom line of screen)
@ MUTT_NO
User answered 'No', or assume 'No'.
@ MUTT_YES
User answered 'Yes', or assume 'Yes'.
enum QuadOption query_yesorno(const char *prompt, enum QuadOption def)
Ask the user a Yes/No question.
struct SmimeKey * key
Selected Key.
struct Menu * menu
Smime Menu.
struct SmimeKey ** table
Array of Keys.
char trust
i=Invalid r=revoked e=expired u=unverified v=verified t=trusted