X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-crypt%2Fpgpkey.c;h=d9e2de32f2269d9e357f0753b4c474b4d0a0c832;hp=c3973949a22f90694e1ff158365a2ab5de2bd54b;hb=10e80e482eff3762b0b8d41b0c7795b76704479c;hpb=ecfcc6df70230ba136c2fb3843700ecb749c41b7 diff --git a/lib-crypt/pgpkey.c b/lib-crypt/pgpkey.c index c397394..d9e2de3 100644 --- a/lib-crypt/pgpkey.c +++ b/lib-crypt/pgpkey.c @@ -17,20 +17,20 @@ #include #include #include +#include #include #include #include +#include #include "mutt.h" #include "recvattach.h" -#include "mutt_menu.h" #include "pgp.h" #include "pager.h" #include "sort.h" -#include "lib/debug.h" #include #include @@ -758,7 +758,7 @@ BODY *pgp_make_key_attachment (char *tempf) 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; @@ -788,7 +788,7 @@ static pgp_key_t *pgp_get_lastp (pgp_key_t p) 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; @@ -812,7 +812,7 @@ pgp_key_t pgp_getkeybyaddr (address_t * a, short abilities, pgp_ring_t keyring) 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; @@ -860,7 +860,7 @@ pgp_key_t pgp_getkeybyaddr (address_t * a, short abilities, pgp_ring_t keyring) this_key_has_weak = 1; } - address_delete (&r); + address_list_wipe(&r); } if (match && !this_key_has_strong && this_key_has_invalid) @@ -906,7 +906,7 @@ pgp_key_t pgp_getkeybyaddr (address_t * a, short abilities, pgp_ring_t keyring) 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; @@ -918,7 +918,7 @@ pgp_key_t pgp_getkeybystr (char *p, short abilities, pgp_ring_t keyring) 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;