74 {
N_(
"Exit"), OP_EXIT },
75 {
N_(
"Select"), OP_GENERIC_SELECT_ENTRY },
76 {
N_(
"Help"), OP_HELP },
114 char *truststate = NULL;
123 truststate =
_(
"Expired ");
131 truststate =
_(
"Invalid ");
139 truststate =
_(
"Revoked ");
147 truststate =
_(
"Trusted ");
155 truststate =
_(
"Unverified");
163 truststate =
_(
"Verified ");
171 truststate =
_(
"Unknown ");
207 for (table_index = 0, key = keys; key; key = key->
next)
209 if (table_index == table_size)
215 table[table_index++] = key;
221 menu->
max = table_index;
230 char title[256] = { 0 };
232 snprintf(title,
sizeof(title),
_(
"S/MIME certificates matching \"%s\""), query);
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 MuttWindow * 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.
void mutt_mem_realloc(void *ptr, size_t size)
Resize a block of memory on the heap.
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.
struct MuttWindow * window_find_child(struct MuttWindow *win, enum WindowType type)
Recursively find a child Window of a given type.
@ WT_DLG_SMIME
Smime Dialog, dlg_smime()
@ WT_STATUS_BAR
Status Bar containing extra info about the Index/Pager/etc.
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.
void * wdata
Private data.
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 SmimeKey ** table
Array of Keys.
char trust
i=Invalid r=revoked e=expired u=unverified v=verified t=trusted
@ MENU_SMIME
SMIME encryption menu.