NeoMutt  2025-12-11-911-gd8d604
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
module_data.h
Go to the documentation of this file.
1
22
23#ifndef MUTT_NCRYPT_MODULE_DATA_H
24#define MUTT_NCRYPT_MODULE_DATA_H
25
26#include <time.h>
27#include "mutt/lib.h"
28#include "crypt_mod.h"
29#ifdef CRYPT_BACKEND_GPGME
30#include <gpgme.h>
31#include "crypt_gpgme.h"
32#endif
33
38{
39 struct Notify *notify;
43#ifdef CRYPT_BACKEND_GPGME
44 gpgme_key_t signature_key;
46#endif
48 struct CryptModuleList crypt_modules;
49 char *charset;
50 char pgp_pass[1024];
51 time_t pgp_exptime;
53 unsigned char *packet_buf;
55 char smime_pass[256];
60};
61
62#endif /* MUTT_NCRYPT_MODULE_DATA_H */
Wrapper for PGP/SMIME calls to GPGME.
@ KIP_MAX
Definition crypt_gpgme.h:69
Register crypto modules.
Convenience wrapper for the library headers.
String manipulation buffer.
Definition buffer.h:36
Internal cache for GPGME.
Definition crypt_gpgme.c:86
Functions for a Dialog or Window.
Definition menu.h:77
Ncrypt private Module data.
Definition module_data.h:38
int key_info_padding[KIP_MAX]
Padding for key info prompts.
Definition module_data.h:45
char pgp_pass[1024]
Cached PGP Passphrase.
Definition module_data.h:50
struct Buffer smime_cert_to_use
S/MIME certificate to use.
Definition module_data.h:58
unsigned char * packet_buf
Cached PGP data packet.
Definition module_data.h:53
size_t packet_buf_len
Length of cached packet.
Definition module_data.h:54
char smime_pass[256]
Cached S/MIME Passphrase.
Definition module_data.h:55
struct PgpCache * pgp_id_defaults
PGP IdDefaults cache.
Definition module_data.h:52
time_t pgp_exptime
Unix time when pgp_pass expires.
Definition module_data.h:51
time_t smime_exp_time
Unix time when smime_pass expires.
Definition module_data.h:56
char * charset
gnupgparse charset
Definition module_data.h:49
struct CryptCache * gpgme_id_defaults
GPGME IdDefaults cache.
Definition module_data.h:42
struct CryptModuleList crypt_modules
Linked list of crypto modules.
Definition module_data.h:48
struct Buffer smime_intermediate_to_use
S/MIME intermediate certificate to use.
Definition module_data.h:59
gpgme_key_t signature_key
GPGME Signature key.
Definition module_data.h:44
struct Notify * notify
Notifications.
Definition module_data.h:39
struct Buffer smime_key_to_use
S/MIME key to use.
Definition module_data.h:57
struct MenuDefinition * menu_smime
S/MIME menu definition.
Definition module_data.h:41
char * current_sender
Current sender for GPGME.
Definition module_data.h:47
struct MenuDefinition * menu_pgp
PGP menu definition.
Definition module_data.h:40
Notification API.
Definition notify.c:53
List of cached PGP keys.
Definition pgpkey.c:67