47 const bool sort_reverse = *(
bool *) sdata;
56 return sort_reverse ? -rc : rc;
66 const bool sort_reverse = *(
bool *) sdata;
75 return sort_reverse ? -rc : rc;
85 const bool sort_reverse = *(
bool *) sdata;
91 if (s->
kobj->subkeys && (s->
kobj->subkeys->timestamp > 0))
92 ts = s->
kobj->subkeys->timestamp;
93 if (t->
kobj->subkeys && (t->
kobj->subkeys->timestamp > 0))
94 tt = t->
kobj->subkeys->timestamp;
111 return sort_reverse ? -rc : rc;
121 const bool sort_reverse = *(
bool *) sdata;
123 unsigned long ts = 0;
124 unsigned long tt = 0;
137 if (s->
kobj->subkeys)
138 ts = s->
kobj->subkeys->length;
139 if (t->
kobj->subkeys)
140 tt = t->
kobj->subkeys->length;
149 if (s->
kobj->subkeys && (s->
kobj->subkeys->timestamp > 0))
150 ts = s->
kobj->subkeys->timestamp;
151 if (t->
kobj->subkeys && (t->
kobj->subkeys->timestamp > 0))
152 tt = t->
kobj->subkeys->timestamp;
166 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.
const char * crypt_fpr_or_lkeyid(struct CryptKeyInfo *k)
Find the fingerprint of a key.
Wrapper for PGP/SMIME calls to GPGME.
static int crypt_sort_trust(const void *a, const void *b, void *sdata)
Compare two keys by their trust levels - Implements sort_t -.
static int crypt_sort_address(const void *a, const void *b, void *sdata)
Compare two keys by their addresses - Implements sort_t -.
static int crypt_sort_date(const void *a, const void *b, void *sdata)
Compare two keys by their dates - Implements sort_t -.
static int crypt_sort_keyid(const void *a, const void *b, void *sdata)
Compare two keys by their IDs - 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.
int(* sort_t)(const void *a, const void *b, void *sdata)
void gpgme_sort_keys(struct CryptKeyInfoArray *ckia)
Sort an array of GPGME keys.
gpgme_validity_t validity
uid validity (cached for convenience)
KeyFlags flags
global and per uid flags (for convenience)
const char * uid
and for convenience point to this user ID
Container for Accounts, Notifications.
struct ConfigSubset * sub
Inherited config items.