NeoMutt
2025-12-11-1009-ga75d9e
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
pgpkey.h
Go to the documentation of this file.
1
23
24
#ifndef MUTT_NCRYPT_PGPKEY_H
25
#define MUTT_NCRYPT_PGPKEY_H
26
27
#include <stdbool.h>
28
#include "
lib.h
"
29
30
struct
Address
;
31
struct
PgpCache
;
32
struct
PgpKeyInfo
;
33
struct
PgpUid
;
34
38
enum
PgpRing
39
{
40
PGP_PUBRING
,
41
PGP_SECRING
,
42
};
43
44
struct
Body
*
pgp_class_make_key_attachment
(
void
);
45
46
struct
PgpKeyInfo
*
pgp_ask_for_key
(
char
*tag,
const
char
*whatfor,
KeyFlags
abilities,
enum
PgpRing
keyring);
47
struct
PgpKeyInfo
*
pgp_getkeybyaddr
(
struct
Address
*a,
KeyFlags
abilities,
enum
PgpRing
keyring,
bool
oppenc_mode);
48
struct
PgpKeyInfo
*
pgp_getkeybystr
(
const
char
*p,
KeyFlags
abilities,
enum
PgpRing
keyring);
49
bool
pgp_id_is_strong
(
struct
PgpUid
*uid);
50
bool
pgp_id_is_valid
(
struct
PgpUid
*uid);
51
bool
pgp_keys_are_valid
(
struct
PgpKeyInfo
*keys);
52
bool
pgp_key_is_valid
(
struct
PgpKeyInfo
*k);
53
struct
PgpKeyInfo
*
pgp_principal_key
(
struct
PgpKeyInfo
*key);
54
55
void
pgp_id_defaults_cleanup
(
struct
PgpCache
**pgp_id_defaults);
56
57
#endif
/* MUTT_NCRYPT_PGPKEY_H */
pgp_class_make_key_attachment
struct Body * pgp_class_make_key_attachment(void)
Generate a public key attachment - Implements CryptModuleSpecs::pgp_make_key_attachment() -.
Definition
pgpkey.c:266
lib.h
API for encryption/signing of emails.
KeyFlags
uint16_t KeyFlags
Definition
lib.h:159
pgp_id_defaults_cleanup
void pgp_id_defaults_cleanup(struct PgpCache **pgp_id_defaults)
Free the PGP IdDefaults cache.
Definition
pgpkey.c:626
pgp_id_is_valid
bool pgp_id_is_valid(struct PgpUid *uid)
Is a PGP key valid.
Definition
pgpkey.c:152
PgpRing
PgpRing
PGP ring type.
Definition
pgpkey.h:39
PGP_SECRING
@ PGP_SECRING
Secret keys.
Definition
pgpkey.h:41
PGP_PUBRING
@ PGP_PUBRING
Public keys.
Definition
pgpkey.h:40
pgp_ask_for_key
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:202
pgp_keys_are_valid
bool pgp_keys_are_valid(struct PgpKeyInfo *keys)
Are all these PGP keys valid?
Definition
pgpkey.c:123
pgp_id_is_strong
bool pgp_id_is_strong(struct PgpUid *uid)
Is a PGP key strong?
Definition
pgpkey.c:139
pgp_getkeybyaddr
struct PgpKeyInfo * pgp_getkeybyaddr(struct Address *a, KeyFlags abilities, enum PgpRing keyring, bool oppenc_mode)
Find a PGP key by address.
Definition
pgpkey.c:382
pgp_key_is_valid
bool pgp_key_is_valid(struct PgpKeyInfo *k)
Is a PGP key valid?
Definition
pgpkey.c:107
pgp_getkeybystr
struct PgpKeyInfo * pgp_getkeybystr(const char *p, KeyFlags abilities, enum PgpRing keyring)
Find a PGP key by string.
Definition
pgpkey.c:523
pgp_principal_key
struct PgpKeyInfo * pgp_principal_key(struct PgpKeyInfo *key)
Get the main (parent) PGP key.
Definition
pgpkey.c:95
Address
An email address.
Definition
address.h:35
Body
The body of an email.
Definition
body.h:36
PgpCache
List of cached PGP keys.
Definition
pgpkey.c:67
PgpKeyInfo
Information about a PGP key.
Definition
pgplib.h:49
PgpUid
PGP User ID.
Definition
pgplib.h:36