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 (!pkey)
59
60 if ((*pkey)->trust != 't')
61 {
62 const char *s = "";
63 switch ((*pkey)->trust)
64 {
65 case 'e':
66 case 'i':
67 case 'r':
68 s =
_(
"ID is expired/disabled/revoked. Do you really want to use the key?");
69 break;
70 case 'u':
71 s =
_(
"ID has undefined validity. Do you really want to use the key?");
72 break;
73 case 'v':
74 s =
_(
"ID is not trusted. Do you really want to use the key?");
75 break;
76 }
77
78 char buf[1024] = { 0 };
79 snprintf(buf, sizeof(buf), "%s", s);
80
82 {
85 }
86 }
87
91}
#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.