NeoMutt  2022-04-29-145-g9b6a0e
Teaching an old dog new tricks
Go to the documentation of this file.
28 #include "config.h"
29 #include <stdbool.h>
30 #include <stdio.h>
31 #include "lib.h"
33 struct AddressList;
34 struct Body;
35 struct Email;
36 struct Envelope;
37 struct Message;
38 struct State;
43 struct SmimeKey
44 {
45  char *email;
46  char *hash;
47  char *label;
48  char *issuer;
49  char trust;
51  struct SmimeKey *next;
52 };
54 void smime_init(void);
55 void smime_cleanup(void);
57 int smime_class_application_handler(struct Body *m, struct State *s);
58 struct Body *smime_class_build_smime_entity(struct Body *a, char *certlist);
59 int smime_class_decrypt_mime(FILE *fp_in, FILE **fp_out, struct Body *b, struct Body **cur);
60 char * smime_class_find_keys(const struct AddressList *addrlist, bool oppenc_mode);
61 void smime_class_getkeys(struct Envelope *env);
62 void smime_class_invoke_import(const char *infile, const char *mailbox);
64 struct Body *smime_class_sign_message(struct Body *a, const struct AddressList *from);
66 int smime_class_verify_one(struct Body *sigbdy, struct State *s, const char *tempfile);
67 int smime_class_verify_sender(struct Email *e, struct Message *msg);
70 #endif /* MUTT_NCRYPT_SMIME_H */
int smime_class_application_handler(struct Body *m, struct State *s)
Implements CryptModuleSpecs::application_handler() -.
Definition: smime.c:2138
int smime_class_decrypt_mime(FILE *fp_in, FILE **fp_out, struct Body *b, struct Body **cur)
Implements CryptModuleSpecs::decrypt_mime() -.
Definition: smime.c:2075
char * smime_class_find_keys(const struct AddressList *addrlist, bool oppenc_mode)
Implements CryptModuleSpecs::find_keys() -.
Definition: smime.c:833
SecurityFlags smime_class_send_menu(struct Email *e)
Implements CryptModuleSpecs::send_menu() -.
Definition: smime.c:2157
struct Body * smime_class_sign_message(struct Body *a, const struct AddressList *from)
Implements CryptModuleSpecs::sign_message() -.
Definition: smime.c:1519
struct Body * smime_class_build_smime_entity(struct Body *a, char *certlist)
Implements CryptModuleSpecs::smime_build_smime_entity() -.
Definition: smime.c:1353
void smime_class_getkeys(struct Envelope *env)
Implements CryptModuleSpecs::smime_getkeys() -.
Definition: smime.c:792
void smime_class_invoke_import(const char *infile, const char *mailbox)
Implements CryptModuleSpecs::smime_invoke_import() -.
Definition: smime.c:1158
int smime_class_verify_sender(struct Email *e, struct Message *msg)
Implements CryptModuleSpecs::smime_verify_sender() -.
Definition: smime.c:1232
bool smime_class_valid_passphrase(void)
Implements CryptModuleSpecs::valid_passphrase() -.
Definition: smime.c:168
int smime_class_verify_one(struct Body *sigbdy, struct State *s, const char *tempfile)
Implements CryptModuleSpecs::verify_one() -.
Definition: smime.c:1728
void smime_class_void_passphrase(void)
Implements CryptModuleSpecs::void_passphrase() -.
Definition: smime.c:159
uint16_t SecurityFlags
Flags, e.g. SEC_ENCRYPT.
Definition: lib.h:74
uint16_t KeyFlags
Flags describing PGP/SMIME keys, e.g. KEYFLAG_CANSIGN.
Definition: lib.h:125
void smime_init(void)
Initialise smime globals.
Definition: smime.c:88
void smime_cleanup(void)
Clean up smime globals.
Definition: smime.c:98
Key value store.
The body of an email.
Definition: body.h:36
The envelope/body of an email.
Definition: email.h:37
The header of an Email.
Definition: envelope.h:57
A local copy of an email.
Definition: mxapi.h:43
An SIME key.
Definition: smime.h:44
KeyFlags flags
Definition: smime.h:50
char * hash
Definition: smime.h:46
struct SmimeKey * next
Definition: smime.h:51
char * issuer
Definition: smime.h:48
char * email
Definition: smime.h:45
char * label
Definition: smime.h:47
char trust
i=Invalid r=revoked e=expired u=unverified v=verified t=trusted
Definition: smime.h:49
Keep track when processing files.
Definition: state.h:46