74 mutt_error(
_(
"This key can't be used: expired/disabled/revoked"));
82 char buf2[1024] = { 0 };
86 str =
_(
"ID is expired/disabled/revoked. Do you really want to use the key?");
90 switch ((*pkey)->trust & 0x03)
93 str =
_(
"ID has undefined validity. Do you really want to use the key?");
96 str =
_(
"ID is not valid. Do you really want to use the key?");
99 str =
_(
"ID is only marginally valid. Do you really want to use the key?");
104 snprintf(buf2,
sizeof(buf2),
"%s", str);
129 struct Buffer *tempfile = NULL;
148 char tmpbuf[256] = { 0 };
149 snprintf(tmpbuf,
sizeof(tmpbuf),
"0x%s",
153 fileno(fp_null), tmpbuf);
166 char title[1024] = { 0 };
167 snprintf(title,
sizeof(title),
_(
"Key ID: 0x%s"),
221 if (!dlg || !dlg->
wdata)
#define ARRAY_GET(head, idx)
Return the element at index.
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
Convenience wrapper for the config headers.
Convenience wrapper for the core headers.
struct MuttWindow * dialog_find(struct MuttWindow *win)
Find the parent Dialog of a Window.
const char * dispatcher_get_retval_name(int rv)
Get the name of a return value.
@ FR_SUCCESS
Valid function - successfully performed.
@ FR_UNKNOWN
Unknown function.
@ FR_ERROR
Valid function - error occurred.
@ FR_NO_ACTION
Valid function - no action performed.
#define mutt_file_fclose(FP)
#define mutt_file_fopen(PATH, MODE)
bool OptPgpCheckTrust
(pseudo) used by dlg_pgp()
int pgp_function_dispatcher(struct MuttWindow *win, int op)
Perform a Pgp function - Implements function_dispatcher_t -.
#define mutt_message(...)
#define mutt_debug(LEVEL,...)
static int op_verify_key(struct PgpData *pd, int op)
Verify a PGP public key - Implements pgp_function_t -.
static int op_exit(struct PgpData *pd, int op)
Exit this menu - Implements pgp_function_t -.
static int op_view_id(struct PgpData *pd, int op)
View the key's user id - Implements pgp_function_t -.
static int op_generic_select_entry(struct PgpData *pd, int op)
Select the current entry - Implements pgp_function_t -.
Convenience wrapper for the gui headers.
@ LL_DEBUG1
Log at debug level 1.
int filter_wait(pid_t pid)
Wait for the exit of a process and return its status.
Convenience wrapper for the library headers.
void mutt_clear_error(void)
Clear the message line (bottom line of screen)
const char * opcodes_get_name(int op)
Get the name of an opcode.
char * pgp_keyid(struct PgpKeyInfo *k)
Get the ID of the main (parent) key.
char * pgp_fpr_or_lkeyid(struct PgpKeyInfo *k)
Get the fingerprint or long keyid.
PGP sign, encrypt, check routines.
static const struct PgpFunction PgpFunctions[]
All the NeoMutt functions that the Pgp supports.
pid_t pgp_invoke_verify_key(FILE **fp_pgp_in, FILE **fp_pgp_out, FILE **fp_pgp_err, int fd_pgp_in, int fd_pgp_out, int fd_pgp_err, const char *uids)
Use PGP to verify a key.
Wrapper around calls to external PGP program.
bool pgp_id_is_valid(struct PgpUid *uid)
Is a PGP key valid.
bool pgp_id_is_strong(struct PgpUid *uid)
Is a PGP key strong?
bool pgp_key_is_valid(struct PgpKeyInfo *k)
Is a PGP key valid?
struct PgpKeyInfo * pgp_principal_key(struct PgpKeyInfo *key)
Get the main (parent) PGP key.
PGP key management routines.
Misc PGP helper routines.
struct Buffer * buf_pool_get(void)
Get a Buffer from the pool.
void buf_pool_release(struct Buffer **ptr)
Return a Buffer to the pool.
@ 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.
String manipulation buffer.
void * wdata
Private data.
Data to pass to the Pgp Functions.
struct Menu * menu
Pgp Menu.
bool done
Should we close the Dialog?
struct PgpUidArray * key_table
Array of Keys.
struct PgpKeyInfo * key
Selected Key.
int op
Op code, e.g. OP_GENERIC_SELECT_ENTRY.
pgp_function_t function
Function to call.
struct PgpKeyInfo * parent