NeoMutt  2020-08-07-1-gab41a1
Teaching an old dog new tricks
crypt_mod_pgp_gpgme.c File Reference

Wrappers for calls to GPGME PGP. More...

#include "config.h"
#include <stdbool.h>
#include <stdio.h>
#include "lib.h"
#include "crypt_gpgme.h"
#include "crypt_mod.h"
+ Include dependency graph for crypt_mod_pgp_gpgme.c:

Go to the source code of this file.


static void pgp_gpgme_void_passphrase (void)
 Implements CryptModuleSpecs::void_passphrase() More...
static bool pgp_gpgme_valid_passphrase (void)
 Implements CryptModuleSpecs::valid_passphrase() More...


struct CryptModuleSpecs CryptModPgpGpgme
 GPGME PGP - Implements CryptModuleSpecs. More...

Detailed Description

Wrappers for calls to GPGME PGP.

  • g10 Code GmbH

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see

Definition in file crypt_mod_pgp_gpgme.c.

Function Documentation

◆ pgp_gpgme_void_passphrase()

static void pgp_gpgme_void_passphrase ( void  )

Implements CryptModuleSpecs::void_passphrase()

This is handled by gpg-agent.

Definition at line 41 of file crypt_mod_pgp_gpgme.c.

42 {
43 }

◆ pgp_gpgme_valid_passphrase()

static bool pgp_gpgme_valid_passphrase ( void  )

Implements CryptModuleSpecs::valid_passphrase()

This is handled by gpg-agent.

Definition at line 50 of file crypt_mod_pgp_gpgme.c.

51 {
52  return true;
53 }

Variable Documentation

◆ CryptModPgpGpgme

struct CryptModuleSpecs CryptModPgpGpgme
Initial value:
= {
struct Body * pgp_gpgme_sign_message(struct Body *a, const struct AddressList *from)
Implements CryptModuleSpecs::sign_message()
Definition: crypt_gpgme.c:1366
int pgp_gpgme_check_traditional(FILE *fp, struct Body *b, bool just_one)
Implements CryptModuleSpecs::pgp_check_traditional()
Definition: crypt_gpgme.c:2624
int pgp_gpgme_application_handler(struct Body *m, struct State *s)
Implements CryptModuleSpecs::application_handler()
Definition: crypt_gpgme.c:2814
void pgp_gpgme_invoke_import(const char *fname)
Implements CryptModuleSpecs::pgp_invoke_import()
Definition: crypt_gpgme.c:2649
void pgp_gpgme_init(void)
Implements CryptModuleSpecs::init()
Definition: crypt_gpgme.c:4130
char * pgp_gpgme_find_keys(struct AddressList *addrlist, bool oppenc_mode)
Implements CryptModuleSpecs::find_keys()
Definition: crypt_gpgme.c:3916
struct Body * pgp_gpgme_make_key_attachment(void)
Implements CryptModuleSpecs::pgp_make_key_attachment()
Definition: crypt_gpgme.c:4023
struct Body * pgp_gpgme_encrypt_message(struct Body *a, char *keylist, bool sign, const struct AddressList *from)
Implements CryptModuleSpecs::pgp_encrypt_message()
Definition: crypt_gpgme.c:1382
int pgp_gpgme_decrypt_mime(FILE *fp_in, FILE **fp_out, struct Body *b, struct Body **cur)
Implements CryptModuleSpecs::decrypt_mime()
Definition: crypt_gpgme.c:2194
static void pgp_gpgme_void_passphrase(void)
Implements CryptModuleSpecs::void_passphrase()
int pgp_gpgme_encrypted_handler(struct Body *a, struct State *s)
Implements CryptModuleSpecs::encrypted_handler()
Definition: crypt_gpgme.c:3042
int pgp_gpgme_verify_one(struct Body *sigbdy, struct State *s, const char *tempfile)
Implements CryptModuleSpecs::verify_one()
Definition: crypt_gpgme.c:2013
Use PGP to encrypt/sign.
Definition: lib.h:97
int pgp_gpgme_send_menu(struct Email *e)
Implements CryptModuleSpecs::send_menu()
Definition: crypt_gpgme.c:4312
void pgp_gpgme_set_sender(const char *sender)
Implements CryptModuleSpecs::set_sender()
Definition: crypt_gpgme.c:4414
static bool pgp_gpgme_valid_passphrase(void)
Implements CryptModuleSpecs::valid_passphrase()

GPGME PGP - Implements CryptModuleSpecs.

Definition at line 59 of file crypt_mod_pgp_gpgme.c.