NeoMutt  2019-12-07-168-gc45f47
Teaching an old dog new tricks
DOXYGEN
crypt_mod_pgp_classic.c
Go to the documentation of this file.
1 
29 #include "config.h"
30 #include <stdio.h>
31 #include "lib.h"
32 #include "crypt_mod.h"
33 #include "pgpinvoke.h"
34 #include "pgpkey.h"
35 #ifdef CRYPT_BACKEND_CLASSIC_PGP
36 #include "pgp.h"
37 #endif
38 
39 // clang-format off
43 struct CryptModuleSpecs CryptModPgpClassic = {
45 
46  NULL, /* init */
56  NULL, /* set_sender */
57 
65 
66  NULL, /* smime_getkeys */
67  NULL, /* smime_verify_sender */
68  NULL, /* smime_build_smime_entity */
69  NULL, /* smime_invoke_import */
70 };
71 // clang-format on
int pgp_class_send_menu(struct Email *e)
Implements CryptModuleSpecs::send_menu()
Definition: pgp.c:1851
PGP key management routines.
int pgp_class_decrypt_mime(FILE *fp_in, FILE **fp_out, struct Body *b, struct Body **cur)
Implements CryptModuleSpecs::decrypt_mime()
Definition: pgp.c:1123
int pgp_class_encrypted_handler(struct Body *a, struct State *s)
Implements CryptModuleSpecs::encrypted_handler()
Definition: pgp.c:1205
Wrapper around calls to external PGP program.
struct Body * pgp_class_make_key_attachment(void)
Implements CryptModuleSpecs::pgp_make_key_attachment()
Definition: pgpkey.c:913
void pgp_class_extract_key_from_attachment(FILE *fp, struct Body *top)
Implements CryptModuleSpecs::pgp_extract_key_from_attachment()
Definition: pgp.c:973
void pgp_class_void_passphrase(void)
Implements CryptModuleSpecs::void_passphrase()
Definition: pgp.c:82
void pgp_class_invoke_import(const char *fname)
Implements CryptModuleSpecs::pgp_invoke_import()
Definition: pgpinvoke.c:407
int pgp_class_application_handler(struct Body *m, struct State *s)
Implements CryptModuleSpecs::application_handler()
Definition: pgp.c:460
struct Body * pgp_class_sign_message(struct Body *a, const struct AddressList *from)
Implements CryptModuleSpecs::sign_message()
Definition: pgp.c:1295
#define APPLICATION_PGP
Use PGP to encrypt/sign.
Definition: lib.h:135
int pgp_class_check_traditional(FILE *fp, struct Body *b, bool just_one)
Implements CryptModuleSpecs::pgp_check_traditional()
Definition: pgp.c:845
Crypto API.
Definition: crypt_mod.h:44
API for encryption/signing of emails.
PGP sign, encrypt, check routines.
struct Body * pgp_class_traditional_encryptsign(struct Body *a, SecurityFlags flags, char *keylist)
Implements CryptModuleSpecs::pgp_traditional_encryptsign()
Definition: pgp.c:1680
struct Body * pgp_class_encrypt_message(struct Body *a, char *keylist, bool sign, const struct AddressList *from)
Implements CryptModuleSpecs::pgp_encrypt_message()
Definition: pgp.c:1547
char * pgp_class_find_keys(struct AddressList *addrlist, bool oppenc_mode)
Implements CryptModuleSpecs::find_keys()
Definition: pgp.c:1425
Register crypto modules.
bool pgp_class_valid_passphrase(void)
Implements CryptModuleSpecs::valid_passphrase()
Definition: pgp.c:91
void pgp_class_invoke_getkeys(struct Address *addr)
Implements CryptModuleSpecs::pgp_invoke_getkeys()
Definition: pgpinvoke.c:431
int pgp_class_verify_one(struct Body *sigbdy, struct State *s, const char *tempfile)
Implements CryptModuleSpecs::verify_one()
Definition: pgp.c:872