45 struct PgpUid const *s = *(
struct PgpUid const *
const *) a;
46 struct PgpUid const *t = *(
struct PgpUid const *
const *) b;
47 const bool sort_reverse = *(
bool *) sdata;
56 return sort_reverse ? -rc : rc;
64 struct PgpUid const *s = *(
struct PgpUid const *
const *) a;
65 struct PgpUid const *t = *(
struct PgpUid const *
const *) b;
66 const bool sort_reverse = *(
bool *) sdata;
75 return sort_reverse ? -rc : rc;
83 struct PgpUid const *s = *(
struct PgpUid const *
const *) a;
84 struct PgpUid const *t = *(
struct PgpUid const *
const *) b;
85 const bool sort_reverse = *(
bool *) sdata;
94 return sort_reverse ? -rc : rc;
102 struct PgpUid const *s = *(
struct PgpUid const *
const *) a;
103 struct PgpUid const *t = *(
struct PgpUid const *
const *) b;
104 const bool sort_reverse = *(
bool *) sdata;
133 return sort_reverse ? -rc : rc;
#define ARRAY_SORT(head, fn, sdata)
Sort an array.
#define ARRAY_SIZE(head)
The number of elements stored.
short cs_subset_sort(const struct ConfigSubset *sub, const char *name)
Get a sort config item by name.
Convenience wrapper for the config headers.
#define SORT_MASK
Mask for the sort id.
#define mutt_numeric_cmp(a, b)
#define SORT_REVERSE
Reverse the order of the sort.
Convenience wrapper for the core headers.
static int pgp_sort_trust(const void *a, const void *b, void *sdata)
Compare two keys by their trust levels - Implements sort_t -.
static int pgp_sort_keyid(const void *a, const void *b, void *sdata)
Compare two keys by their IDs - Implements sort_t -.
static int pgp_sort_date(const void *a, const void *b, void *sdata)
Compare two keys by their dates - Implements sort_t -.
static int pgp_sort_address(const void *a, const void *b, void *sdata)
Compare two keys by their addresses - Implements sort_t -.
Convenience wrapper for the library headers.
int mutt_istr_cmp(const char *a, const char *b)
Compare two strings ignoring case, safely.
#define KEYFLAG_RESTRICTIONS
@ KEY_SORT_ADDRESS
Sort by address.
@ KEY_SORT_DATE
Sort by date.
@ KEY_SORT_TRUST
Sort by trust level.
@ KEY_SORT_KEYID
Sort by key id.
char * pgp_fpr_or_lkeyid(struct PgpKeyInfo *k)
Get the fingerprint or long keyid.
PGP sign, encrypt, check routines.
Misc PGP helper routines.
int(* sort_t)(const void *a, const void *b, void *sdata)
void pgp_sort_keys(struct PgpUidArray *pua)
Sort an array of PGP keys.
Container for Accounts, Notifications.
struct ConfigSubset * sub
Inherited config items.
struct PgpKeyInfo * parent
Parent key.