75 {
N_(
"Exit"), OP_EXIT },
76 {
N_(
"Select"), OP_GENERIC_SELECT_ENTRY },
77 {
N_(
"Help"), OP_HELP },
118 char *truststate = NULL;
119 switch ((*pkey)->trust)
127 truststate =
_(
"Expired ");
135 truststate =
_(
"Invalid ");
143 truststate =
_(
"Revoked ");
151 truststate =
_(
"Trusted ");
159 truststate =
_(
"Unverified");
167 truststate =
_(
"Verified ");
175 truststate =
_(
"Unknown ");
178 int bytes =
buf_printf(buf,
" 0x%s %s %s %-35.35s %s", (*pkey)->hash,
180 (*pkey)->email, (*pkey)->label);
218 char title[256] = { 0 };
219 snprintf(title,
sizeof(title),
_(
"S/MIME certificates matching \"%s\""), query);
228 struct KeyEvent event = { 0, OP_NULL };
#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.
struct KeyEvent km_dokey(const struct MenuDefinition *md, GetChFlags flags)
Determine what a keypress should do.
void km_error_key(const struct MenuDefinition *md)
Handle an unbound key sequence.
@ GETCH_NONE
No flags are set.
int smime_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event)
Perform a Smime function - Implements function_dispatcher_t -.
int menu_tagging_dispatcher(struct MuttWindow *win, const struct KeyEvent *event)
Perform tagging operations on the Menu - Implements function_dispatcher_t -.
int global_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event)
Perform a Global function - Implements function_dispatcher_t -.
int menu_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event)
Perform a Menu 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(const struct MenuDefinition *md, enum WindowType wtype, const struct Mapping *help_data)
Create a simple index Dialog.
@ LL_DEBUG1
Log at debug level 1.
@ MODULE_ID_NCRYPT
ModuleNcrypt, Ncrypt
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()
API for encryption/signing of emails.
@ KEYFLAG_CANSIGN
Key is suitable for signing.
@ KEYFLAG_CANENCRYPT
Key is suitable for encryption.
Ncrypt private Module data.
Shared constants/structs that are private to libconn.
void * neomutt_get_module_data(struct NeoMutt *n, enum ModuleId id)
Get the private data for a Module.
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.
An event such as a keypress.
int op
Function opcode, e.g. OP_HELP.
Mapping between user-readable string and a constant.
Ncrypt private Module data.
struct MenuDefinition * menu_smime
S/MIME menu definition.
Container for Accounts, Notifications.
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.
struct SmimeKey * next
Linked list.