NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
gpgme_functions.h
Go to the documentation of this file.
1
22
23
#ifndef MUTT_NCRYPT_GPGME_FUNCTIONS_H
24
#define MUTT_NCRYPT_GPGME_FUNCTIONS_H
25
26
#include <stdbool.h>
27
28
struct
CryptKeyInfo
;
29
struct
KeyEvent
;
30
struct
MuttWindow
;
31
35
struct
GpgmeData
36
{
37
bool
done
;
38
struct
Menu
*
menu
;
39
struct
CryptKeyInfoArray *
key_table
;
40
struct
CryptKeyInfo
*
key
;
41
bool
*
forced_valid
;
42
};
43
57
typedef
int (*
gpgme_function_t
)(
struct
GpgmeData
*gd,
const
struct
KeyEvent
*event);
58
62
struct
GpgmeFunction
63
{
64
int
op
;
65
gpgme_function_t
function
;
66
};
67
68
bool
crypt_keys_are_valid
(
struct
CryptKeyInfo
*keys);
69
int
gpgme_function_dispatcher
(
struct
MuttWindow
*win,
const
struct
KeyEvent
*event);
70
71
#endif
/* MUTT_NCRYPT_GPGME_FUNCTIONS_H */
gpgme_function_t
int(* gpgme_function_t)(struct GpgmeData *gd, const struct KeyEvent *event)
Definition
gpgme_functions.h:57
crypt_keys_are_valid
bool crypt_keys_are_valid(struct CryptKeyInfo *keys)
Are all these keys valid?
Definition
functions_gpgme.c:728
gpgme_function_dispatcher
int gpgme_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event)
Perform a Gpgme function - Implements function_dispatcher_t -.
Definition
functions_gpgme.c:865
CryptKeyInfo
A stored PGP key.
Definition
crypt_gpgme.h:45
GpgmeData
Data to pass to the Gpgme Functions.
Definition
gpgme_functions.h:36
GpgmeData::key_table
struct CryptKeyInfoArray * key_table
Array of Keys.
Definition
gpgme_functions.h:39
GpgmeData::forced_valid
bool * forced_valid
User insists on out-of-date key.
Definition
gpgme_functions.h:41
GpgmeData::key
struct CryptKeyInfo * key
Selected Key.
Definition
gpgme_functions.h:40
GpgmeData::done
bool done
Should we close the Dialog?
Definition
gpgme_functions.h:37
GpgmeData::menu
struct Menu * menu
Gpgme Menu.
Definition
gpgme_functions.h:38
GpgmeFunction
A NeoMutt function.
Definition
gpgme_functions.h:63
GpgmeFunction::function
gpgme_function_t function
Function to call.
Definition
gpgme_functions.h:65
GpgmeFunction::op
int op
Op code, e.g. OP_GENERIC_SELECT_ENTRY.
Definition
gpgme_functions.h:64
KeyEvent
An event such as a keypress.
Definition
get.h:75
Menu
Definition
lib.h:86
MuttWindow
Definition
mutt_window.h:129