NeoMutt  2024-10-02-37-gfa9146
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
pgpkey.h
Go to the documentation of this file.
1
24#ifndef MUTT_NCRYPT_PGPKEY_H
25#define MUTT_NCRYPT_PGPKEY_H
26
27#include <stdbool.h>
28#include "lib.h"
29
30struct Address;
31struct PgpKeyInfo;
32struct PgpUid;
33
38{
41};
42
44
45struct PgpKeyInfo *pgp_ask_for_key (char *tag, const char *whatfor, KeyFlags abilities, enum PgpRing keyring);
46struct PgpKeyInfo *pgp_getkeybyaddr (struct Address *a, KeyFlags abilities, enum PgpRing keyring, bool oppenc_mode);
47struct PgpKeyInfo *pgp_getkeybystr (const char *p, KeyFlags abilities, enum PgpRing keyring);
48bool pgp_id_is_strong (struct PgpUid *uid);
49bool pgp_id_is_valid (struct PgpUid *uid);
50bool pgp_keys_are_valid(struct PgpKeyInfo *keys);
51bool pgp_key_is_valid (struct PgpKeyInfo *k);
52struct PgpKeyInfo *pgp_principal_key (struct PgpKeyInfo *key);
53
54#endif /* MUTT_NCRYPT_PGPKEY_H */
struct Body * pgp_class_make_key_attachment(void)
Generate a public key attachment - Implements CryptModuleSpecs::pgp_make_key_attachment() -.
Definition: pgpkey.c:259
uint16_t KeyFlags
Flags describing PGP/SMIME keys, e.g. KEYFLAG_CANSIGN.
Definition: lib.h:125
bool pgp_id_is_valid(struct PgpUid *uid)
Is a PGP key valid.
Definition: pgpkey.c:149
PgpRing
PGP ring type.
Definition: pgpkey.h:38
@ PGP_SECRING
Secret keys.
Definition: pgpkey.h:40
@ PGP_PUBRING
Public keys.
Definition: pgpkey.h:39
struct PgpKeyInfo * pgp_ask_for_key(char *tag, const char *whatfor, KeyFlags abilities, enum PgpRing keyring)
Ask the user for a PGP key.
Definition: pgpkey.c:199
bool pgp_keys_are_valid(struct PgpKeyInfo *keys)
Are all these PGP keys valid?
Definition: pgpkey.c:120
bool pgp_id_is_strong(struct PgpUid *uid)
Is a PGP key strong?
Definition: pgpkey.c:136
struct PgpKeyInfo * pgp_getkeybyaddr(struct Address *a, KeyFlags abilities, enum PgpRing keyring, bool oppenc_mode)
Find a PGP key by address.
Definition: pgpkey.c:376
bool pgp_key_is_valid(struct PgpKeyInfo *k)
Is a PGP key valid?
Definition: pgpkey.c:104
struct PgpKeyInfo * pgp_getkeybystr(const char *p, KeyFlags abilities, enum PgpRing keyring)
Find a PGP key by string.
Definition: pgpkey.c:515
struct PgpKeyInfo * pgp_principal_key(struct PgpKeyInfo *key)
Get the main (parent) PGP key.
Definition: pgpkey.c:92
Key value store.
An email address.
Definition: address.h:36
The body of an email.
Definition: body.h:36
Information about a PGP key.
Definition: pgplib.h:47
PGP User ID.
Definition: pgplib.h:35