NeoMutt  2023-03-22-27-g3cb248
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"
33struct AddressList;
34struct Body;
35struct Email;
36struct Envelope;
37struct Message;
38struct State;
45 char *email;
46 char *hash;
47 char *label;
48 char *issuer;
49 char trust;
51 struct SmimeKey *next;
54void smime_init(void);
55void smime_cleanup(void);
57int smime_class_application_handler(struct Body *m, struct State *s);
58struct Body * smime_class_build_smime_entity (struct Body *a, char *certlist);
59int smime_class_decrypt_mime (FILE *fp_in, FILE **fp_out, struct Body *b, struct Body **cur);
60char * smime_class_find_keys (const struct AddressList *addrlist, bool oppenc_mode);
61void smime_class_getkeys (struct Envelope *env);
62void smime_class_invoke_import (const char *infile, const char *mailbox);
64struct Body * smime_class_sign_message (struct Body *a, const struct AddressList *from);
66int smime_class_verify_one (struct Body *sigbdy, struct State *s, const char *tempfile);
67int 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:2150
int smime_class_decrypt_mime(FILE *fp_in, FILE **fp_out, struct Body *b, struct Body **cur)
Implements CryptModuleSpecs::decrypt_mime() -.
Definition: smime.c:2087
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:2169
struct Body * smime_class_sign_message(struct Body *a, const struct AddressList *from)
Implements CryptModuleSpecs::sign_message() -.
Definition: smime.c:1525
struct Body * smime_class_build_smime_entity(struct Body *a, char *certlist)
Implements CryptModuleSpecs::smime_build_smime_entity() -.
Definition: smime.c:1359
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:1734
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:76
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:47