return att;
}
-static LIST *pgp_add_string_to_hints (LIST * hints, const char *str)
+static string_list_t *pgp_add_string_to_hints (string_list_t * hints, const char *str)
{
char *scratch;
char *t;
pgp_key_t pgp_getkeybyaddr (address_t * a, short abilities, pgp_ring_t keyring)
{
address_t *r, *p;
- LIST *hints = NULL;
+ string_list_t *hints = NULL;
int weak = 0;
int invalid = 0;
mutt_message (_("Looking for keys matching \"%s\"..."), a->mailbox);
keys = pgp_get_candidates (keyring, hints);
- mutt_free_list (&hints);
+ string_list_wipe(&hints);
if (!keys)
return NULL;
this_key_has_weak = 1;
}
- address_delete (&r);
+ address_list_wipe(&r);
}
if (match && !this_key_has_strong && this_key_has_invalid)
pgp_key_t pgp_getkeybystr (char *p, short abilities, pgp_ring_t keyring)
{
- LIST *hints = NULL;
+ string_list_t *hints = NULL;
pgp_key_t keys;
pgp_key_t matches = NULL;
pgp_key_t *last = &matches;
hints = pgp_add_string_to_hints (hints, p);
keys = pgp_get_candidates (keyring, hints);
- mutt_free_list (&hints);
+ string_list_wipe(&hints);
if (!keys)
return NULL;