74 {
N_(
"Exit"), OP_EXIT },
75 {
N_(
"Select"), OP_GENERIC_SELECT_ENTRY },
76 {
N_(
"Help"), OP_HELP },
117 char *truststate = NULL;
118 switch ((*pkey)->trust)
126 truststate =
_(
"Expired ");
134 truststate =
_(
"Invalid ");
142 truststate =
_(
"Revoked ");
150 truststate =
_(
"Trusted ");
158 truststate =
_(
"Unverified");
166 truststate =
_(
"Verified ");
174 truststate =
_(
"Unknown ");
177 int bytes =
buf_printf(buf,
" 0x%s %s %s %-35.35s %s", (*pkey)->hash,
179 (*pkey)->email, (*pkey)->label);
213 char title[256] = { 0 };
214 snprintf(title,
sizeof(title),
_(
"S/MIME certificates matching \"%s\""), query);
#define ARRAY_ADD(head, elem)
Add an element at the end of the array.
#define ARRAY_SIZE(head)
The number of elements stored.
#define ARRAY_GET(head, idx)
Return the element at index.
#define ARRAY_HEAD_INITIALIZER
Static initializer for arrays.
int buf_printf(struct Buffer *buf, const char *fmt,...)
Format a string overwriting a Buffer.
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
Convenience wrapper for the core headers.
size_t mutt_strnwidth(const char *s, size_t n)
Measure a string's width in screen cells.
@ FR_UNKNOWN
Unknown function.
static const struct Mapping SmimeHelp[]
Help Bar for the Smime key selection dialog.
static char * smime_key_flags(KeyFlags flags)
Turn SMIME key flags into a string.
int km_dokey(enum MenuType mtype, GetChFlags flags)
Determine what a keypress should do.
void km_error_key(enum MenuType mtype)
Handle an unbound key sequence.
int menu_tagging_dispatcher(struct MuttWindow *win, int op)
Perform tagging operations on the Menu - Implements function_dispatcher_t -.
int global_function_dispatcher(struct MuttWindow *win, int op)
Perform a Global function - Implements function_dispatcher_t -.
int menu_function_dispatcher(struct MuttWindow *win, int op)
Perform a Menu function - Implements function_dispatcher_t -.
int smime_function_dispatcher(struct MuttWindow *win, int op)
Perform a Smime function - Implements function_dispatcher_t -.
struct SmimeKey * dlg_smime(struct SmimeKey *keys, const char *query)
Get the user to select a key -.
#define mutt_debug(LEVEL,...)
Convenience wrapper for the gui headers.
void simple_dialog_free(struct MuttWindow **ptr)
Destroy a simple index Dialog.
struct SimpleDialogWindows simple_dialog_new(enum MenuType mtype, enum WindowType wtype, const struct Mapping *help_data)
Create a simple index Dialog.
#define GETCH_NO_FLAGS
No flags are set.
@ LL_DEBUG1
Log at debug level 1.
Convenience wrapper for the library headers.
void mutt_clear_error(void)
Clear the message line (bottom line of screen)
void window_redraw(struct MuttWindow *win)
Reflow, recalc and repaint a tree of Windows.
struct MuttWindow * window_set_focus(struct MuttWindow *win)
Set the Window focus.
@ WT_DLG_SMIME
Smime Dialog, dlg_smime()
uint16_t KeyFlags
Flags describing PGP/SMIME keys, e.g. KEYFLAG_CANSIGN.
#define KEYFLAG_CANENCRYPT
Key is suitable for encryption.
#define KEYFLAG_CANSIGN
Key is suitable for signing.
const char * opcodes_get_name(int op)
Get the name of an opcode.
void sbar_set_title(struct MuttWindow *win, const char *title)
Set the title for the Simple Bar.
String manipulation buffer.
Mapping between user-readable string and a constant.
Tuple for the results of simple_dialog_new()
struct MuttWindow * sbar
Simple Bar.
struct MuttWindow * dlg
Main Dialog Window.
Data to pass to the Smime Functions.
struct SmimeKey * key
Selected Key.
bool done
Should we close the Dialog?
struct Menu * menu
Smime Menu.
struct SmimeKeyArray * ska
Array of Keys.
@ MENU_SMIME
SMIME encryption menu.