Prototype for a Smime Function.
More...
Prototype for a Smime Function.
- Parameters
-
| menu | Menu |
| event | Event to process |
- Return values
-
- Precondition
- menu is not NULL
-
event is not NULL
◆ op_exit()
Exit this menu - Implements smime_function_t -.
Definition at line 45 of file smime_functions.c.
46{
49}
@ 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, |
|
|
const struct KeyEvent * | event ) |
|
static |
Select the current entry - Implements smime_function_t -.
Definition at line 54 of file smime_functions.c.
55{
58 if (!pkey)
60
61 if ((*pkey)->trust != 't')
62 {
63 const char *s = "";
64 switch ((*pkey)->trust)
65 {
66 case 'e':
67 case 'i':
68 case 'r':
69 s =
_(
"ID is expired/disabled/revoked. Do you really want to use the key?");
70 break;
71 case 'u':
72 s =
_(
"ID has undefined validity. Do you really want to use the key?");
73 break;
74 case 'v':
75 s =
_(
"ID is not trusted. Do you really want to use the key?");
76 break;
77 }
78
79 char buf[1024] = { 0 };
80 snprintf(buf, sizeof(buf), "%s", s);
81
83 {
86 }
87 }
88
92}
#define ARRAY_GET(head, idx)
Return the element at index.
@ 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 SmimeKeyArray * ska
Array of Keys.