NeoMutt  2019-12-07-168-gc45f47
Teaching an old dog new tricks
DOXYGEN
crypt_mod_smime_gpgme.c
Go to the documentation of this file.
1 
29 #include "config.h"
30 #include <stdbool.h>
31 #include <stdio.h>
32 #include "lib.h"
33 #include "crypt_gpgme.h"
34 #include "crypt_mod.h"
35 
41 static void smime_gpgme_void_passphrase(void)
42 {
43 }
44 
51 {
52  return true;
53 }
54 
55 // clang-format off
59 struct CryptModuleSpecs CryptModSmimeGpgme = {
61 
67  NULL, /* encrypted_handler */
72  NULL, /* set_sender */
73 
74  NULL, /* pgp_encrypt_message */
75  NULL, /* pgp_make_key_attachment */
76  NULL, /* pgp_check_traditional */
77  NULL, /* pgp_traditional_encryptsign */
78  NULL, /* pgp_invoke_getkeys */
79  NULL, /* pgp_invoke_import */
80  NULL, /* pgp_extract_key_from_attachment */
81 
82  NULL, /* smime_getkeys */
85  NULL, /* smime_invoke_import */
86 };
87 // clang-format on
Wrapper for PGP/SMIME calls to GPGME.
struct Body * smime_gpgme_sign_message(struct Body *a, const struct AddressList *from)
Implements CryptModuleSpecs::sign_message()
Definition: crypt_gpgme.c:1564
static bool smime_gpgme_valid_passphrase(void)
Implements CryptModuleSpecs::valid_passphrase()
char * smime_gpgme_find_keys(struct AddressList *addrlist, bool oppenc_mode)
Implements CryptModuleSpecs::find_keys()
Definition: crypt_gpgme.c:5366
void smime_gpgme_init(void)
Implements CryptModuleSpecs::init()
Definition: crypt_gpgme.c:5581
int smime_gpgme_verify_sender(struct Mailbox *m, struct Email *e)
Implements CryptModuleSpecs::smime_verify_sender()
Definition: crypt_gpgme.c:5848
int smime_gpgme_decrypt_mime(FILE *fp_in, FILE **fp_out, struct Body *b, struct Body **cur)
Implements CryptModuleSpecs::decrypt_mime()
Definition: crypt_gpgme.c:2473
#define APPLICATION_SMIME
Use SMIME to encrypt/sign.
Definition: lib.h:136
Crypto API.
Definition: crypt_mod.h:44
int smime_gpgme_verify_one(struct Body *sigbdy, struct State *s, const char *tempfile)
Implements CryptModuleSpecs::verify_one()
Definition: crypt_gpgme.c:2209
struct Body * smime_gpgme_build_smime_entity(struct Body *a, char *keylist)
Implements CryptModuleSpecs::smime_build_smime_entity()
Definition: crypt_gpgme.c:1618
API for encryption/signing of emails.
int smime_gpgme_send_menu(struct Email *e)
Implements CryptModuleSpecs::send_menu()
Definition: crypt_gpgme.c:5762
int smime_gpgme_application_handler(struct Body *a, struct State *s)
Implements CryptModuleSpecs::application_handler()
Definition: crypt_gpgme.c:3322
static void smime_gpgme_void_passphrase(void)
Implements CryptModuleSpecs::void_passphrase()
Register crypto modules.