NeoMutt  2020-06-26-89-g172cd3
Teaching an old dog new tricks
DOXYGEN
crypt_mod_smime_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 #ifdef CRYPT_BACKEND_CLASSIC_SMIME
34 #include "smime.h"
35 #endif
36 
40 static void smime_class_init(void)
41 {
42  smime_init();
43 }
44 
48 static void smime_class_cleanup(void)
49 {
50  smime_cleanup();
51 }
52 
53 // clang-format off
57 struct CryptModuleSpecs CryptModSmimeClassic = {
59 
66  NULL, /* encrypted_handler */
71  NULL, /* set_sender */
72 
73  NULL, /* pgp_encrypt_message */
74  NULL, /* pgp_make_key_attachment */
75  NULL, /* pgp_check_traditional */
76  NULL, /* pgp_traditional_encryptsign */
77  NULL, /* pgp_invoke_getkeys */
78  NULL, /* pgp_invoke_import */
79  NULL, /* pgp_extract_key_from_attachment */
80 
85 };
86 // clang-format on
void smime_init(void)
Initialise smime globals.
Definition: smime.c:92
int smime_class_verify_sender(struct Mailbox *m, struct Email *e)
Implements CryptModuleSpecs::smime_verify_sender()
Definition: smime.c:1433
void smime_class_getkeys(struct Envelope *env)
Implements CryptModuleSpecs::smime_getkeys()
Definition: smime.c:1005
int smime_class_application_handler(struct Body *m, struct State *s)
Implements CryptModuleSpecs::application_handler()
Definition: smime.c:2326
int smime_class_verify_one(struct Body *sigbdy, struct State *s, const char *tempfile)
Implements CryptModuleSpecs::verify_one()
Definition: smime.c:1921
bool smime_class_valid_passphrase(void)
Implements CryptModuleSpecs::valid_passphrase()
Definition: smime.c:172
void smime_class_invoke_import(const char *infile, const char *mailbox)
Implements CryptModuleSpecs::smime_invoke_import()
Definition: smime.c:1361
#define APPLICATION_SMIME
Use SMIME to encrypt/sign.
Definition: lib.h:93
char * smime_class_find_keys(struct AddressList *al, bool oppenc_mode)
Implements CryptModuleSpecs::find_keys()
Definition: smime.c:1041
static void smime_class_init(void)
Initialise smime.
Crypto API.
Definition: crypt_mod.h:44
struct Body * smime_class_sign_message(struct Body *a, const struct AddressList *from)
Implements CryptModuleSpecs::sign_message()
Definition: smime.c:1718
void smime_class_void_passphrase(void)
Implements CryptModuleSpecs::void_passphrase()
Definition: smime.c:163
API for encryption/signing of emails.
static void smime_class_cleanup(void)
Clean up smime.
int smime_class_send_menu(struct Email *e)
Implements CryptModuleSpecs::send_menu()
Definition: smime.c:2345
void smime_cleanup(void)
Clean up smime globals.
Definition: smime.c:102
SMIME helper routines.
struct Body * smime_class_build_smime_entity(struct Body *a, char *certlist)
Implements CryptModuleSpecs::smime_build_smime_entity()
Definition: smime.c:1554
Register crypto modules.
int smime_class_decrypt_mime(FILE *fp_in, FILE **fp_out, struct Body *b, struct Body **cur)
Implements CryptModuleSpecs::decrypt_mime()
Definition: smime.c:2264