NeoMutt  2022-04-29-323-g5fcc6c
Teaching an old dog new tricks
DOXYGEN
cryptglue.h
Go to the documentation of this file.
1
24#ifndef MUTT_NCRYPT_CRYPTGLUE_H
25#define MUTT_NCRYPT_CRYPTGLUE_H
26
27#include <stdbool.h>
28#include "lib.h"
29
30struct AddressList;
31struct Body;
32struct Email;
33struct State;
34
35struct Body *crypt_pgp_encrypt_message(struct Email *e, struct Body *a, char *keylist, int sign, const struct AddressList *from);
36char * crypt_pgp_find_keys(struct AddressList *al, bool oppenc_mode);
37void crypt_pgp_invoke_import(const char *fname);
38void crypt_pgp_set_sender(const char *sender);
39struct Body *crypt_pgp_sign_message(struct Body *a, const struct AddressList *from);
40struct Body *crypt_pgp_traditional_encryptsign(struct Body *a, SecurityFlags flags, char *keylist);
42int crypt_pgp_verify_one(struct Body *sigbdy, struct State *s, const char *tempf);
44
45struct Body *crypt_smime_build_smime_entity(struct Body *a, char *certlist);
46char * crypt_smime_find_keys(struct AddressList *al, bool oppenc_mode);
47void crypt_smime_invoke_import(const char *infile, const char *mailbox);
48void crypt_smime_set_sender(const char *sender);
49struct Body *crypt_smime_sign_message(struct Body *a, const struct AddressList *from);
51int crypt_smime_verify_one(struct Body *sigbdy, struct State *s, const char *tempf);
53
54#endif /* MUTT_NCRYPT_CRYPTGLUE_H */
struct Body * crypt_pgp_sign_message(struct Body *a, const struct AddressList *from)
Wrapper for CryptModuleSpecs::sign_message()
Definition: cryptglue.c:327
struct Body * crypt_smime_build_smime_entity(struct Body *a, char *certlist)
Wrapper for CryptModuleSpecs::smime_build_smime_entity()
Definition: cryptglue.c:497
int crypt_smime_verify_one(struct Body *sigbdy, struct State *s, const char *tempf)
Wrapper for CryptModuleSpecs::verify_one()
Definition: cryptglue.c:517
bool crypt_smime_valid_passphrase(void)
Wrapper for CryptModuleSpecs::valid_passphrase()
Definition: cryptglue.c:422
void crypt_pgp_invoke_import(const char *fname)
Wrapper for CryptModuleSpecs::pgp_invoke_import()
Definition: cryptglue.c:364
void crypt_smime_void_passphrase(void)
Wrapper for CryptModuleSpecs::void_passphrase()
Definition: cryptglue.c:413
int crypt_pgp_verify_one(struct Body *sigbdy, struct State *s, const char *tempf)
Wrapper for CryptModuleSpecs::verify_one()
Definition: cryptglue.c:373
void crypt_smime_invoke_import(const char *infile, const char *mailbox)
Wrapper for CryptModuleSpecs::smime_invoke_import()
Definition: cryptglue.c:508
void crypt_pgp_set_sender(const char *sender)
Wrapper for CryptModuleSpecs::set_sender()
Definition: cryptglue.c:404
void crypt_smime_set_sender(const char *sender)
Wrapper for CryptModuleSpecs::set_sender()
Definition: cryptglue.c:539
char * crypt_pgp_find_keys(struct AddressList *al, bool oppenc_mode)
Wrapper for CryptModuleSpecs::find_keys()
Definition: cryptglue.c:316
void crypt_pgp_void_passphrase(void)
Wrapper for CryptModuleSpecs::void_passphrase()
Definition: cryptglue.c:191
char * crypt_smime_find_keys(struct AddressList *al, bool oppenc_mode)
Wrapper for CryptModuleSpecs::find_keys()
Definition: cryptglue.c:475
bool crypt_pgp_valid_passphrase(void)
Wrapper for CryptModuleSpecs::valid_passphrase()
Definition: cryptglue.c:200
struct Body * crypt_pgp_encrypt_message(struct Email *e, struct Body *a, char *keylist, int sign, const struct AddressList *from)
Wrapper for CryptModuleSpecs::pgp_encrypt_message()
Definition: cryptglue.c:338
struct Body * crypt_pgp_traditional_encryptsign(struct Body *a, SecurityFlags flags, char *keylist)
Wrapper for CryptModuleSpecs::pgp_traditional_encryptsign()
Definition: cryptglue.c:294
struct Body * crypt_smime_sign_message(struct Body *a, const struct AddressList *from)
Wrapper for CryptModuleSpecs::sign_message()
Definition: cryptglue.c:486
uint16_t SecurityFlags
Flags, e.g. SEC_ENCRYPT.
Definition: lib.h:76
Key value store.
The body of an email.
Definition: body.h:36
The envelope/body of an email.
Definition: email.h:37
Keep track when processing files.
Definition: state.h:46