24#ifndef MUTT_NCRYPT_PGP_H
25#define MUTT_NCRYPT_PGP_H
int pgp_class_application_handler(struct Body *b, struct State *state)
Manage the MIME type "application/pgp" or "application/smime" - Implements CryptModuleSpecs::applicat...
int pgp_class_decrypt_mime(FILE *fp_in, FILE **fp_out, struct Body *b, struct Body **b_dec)
Decrypt an encrypted MIME part - Implements CryptModuleSpecs::decrypt_mime() -.
int pgp_class_encrypted_handler(struct Body *b, struct State *state)
Manage a PGP or S/MIME encrypted MIME part - Implements CryptModuleSpecs::encrypted_handler() -.
char * pgp_class_find_keys(const struct AddressList *addrlist, bool oppenc_mode)
Find the keyids of the recipients of a message - Implements CryptModuleSpecs::find_keys() -.
bool pgp_class_check_traditional(FILE *fp, struct Body *b, bool just_one)
Look for inline (non-MIME) PGP content - Implements CryptModuleSpecs::pgp_check_traditional() -.
struct Body * pgp_class_encrypt_message(struct Body *b, char *keylist, bool sign, const struct AddressList *from)
PGP encrypt an email - Implements CryptModuleSpecs::pgp_encrypt_message() -.
struct Body * pgp_class_traditional_encryptsign(struct Body *b, SecurityFlags flags, char *keylist)
Create an inline PGP encrypted, signed email - Implements CryptModuleSpecs::pgp_traditional_encryptsi...
struct Body * pgp_class_sign_message(struct Body *b, const struct AddressList *from)
Cryptographically sign the Body of a message - Implements CryptModuleSpecs::sign_message() -.
bool pgp_class_valid_passphrase(void)
Ensure we have a valid passphrase - Implements CryptModuleSpecs::valid_passphrase() -.
int pgp_class_verify_one(struct Body *b, struct State *state, const char *tempfile)
Check a signed MIME part against a signature - Implements CryptModuleSpecs::verify_one() -.
void pgp_class_void_passphrase(void)
Forget the cached passphrase - Implements CryptModuleSpecs::void_passphrase() -.
uint16_t SecurityFlags
Flags, e.g. SEC_ENCRYPT.
char * pgp_long_keyid(struct PgpKeyInfo *k)
Get a key's long id.
char * pgp_this_keyid(struct PgpKeyInfo *k)
Get the ID of this key.
char * pgp_keyid(struct PgpKeyInfo *k)
Get the ID of the main (parent) key.
char * pgp_fpr_or_lkeyid(struct PgpKeyInfo *k)
Get the fingerprint or long keyid.
char * pgp_short_keyid(struct PgpKeyInfo *k)
Get a key's short id.
ExpandoDataPgpCmd
Expando UIDs for PGP Commands.
@ ED_PGC_KEY_IDS
PgpCommandContext.ids.
@ ED_PGC_FILE_SIGNATURE
PgpCommandContext.sig_fname.
@ ED_PGC_NEED_PASS
PgpCommandContext.need_passphrase.
@ ED_PGC_SIGN_AS
PgpCommandContext.signas.
@ ED_PGC_FILE_MESSAGE
PgpCommandContext.fname.
bool pgp_use_gpg_agent(void)
Does the user want to use the gpg agent?
The envelope/body of an email.
Information about a PGP key.
Keep track when processing files.