X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=pgpkey.c;h=e289083fe7c894ec33e1d82f7494ad8d6a4a6aa9;hb=f061b8bfafd1eb3d389e4c9801ff4377de8f9225;hp=425289e924007b45648579067f35af9d5250086c;hpb=2a06362a155582cd59ae2ef6f0df71694a7eede3;p=apps%2Fmadmutt.git diff --git a/pgpkey.c b/pgpkey.c index 425289e..e289083 100644 --- a/pgpkey.c +++ b/pgpkey.c @@ -401,7 +401,7 @@ static int pgp_id_is_valid (pgp_uid_t * uid) #define PGP_KV_MATCH (PGP_KV_ADDR|PGP_KV_STRING) -static int pgp_id_matches_addr (ADDRESS * addr, ADDRESS * u_addr, +static int pgp_id_matches_addr (address_t * addr, address_t * u_addr, pgp_uid_t * uid) { int rv = 0; @@ -423,7 +423,7 @@ static int pgp_id_matches_addr (ADDRESS * addr, ADDRESS * u_addr, return rv; } -static pgp_key_t pgp_select_key (pgp_key_t keys, ADDRESS * p, const char *s) +static pgp_key_t pgp_select_key (pgp_key_t keys, address_t * p, const char *s) { int keymax; pgp_uid_t **KeyTable; @@ -662,7 +662,7 @@ pgp_key_t pgp_ask_for_key (char *tag, char *whatfor, if (whatfor) { if (l) - str_replace (&l->dflt, resp); + m_strreplace(&l->dflt, resp); else { l = p_new(struct pgp_cache, 1); l->next = id_defaults; @@ -786,9 +786,9 @@ static pgp_key_t *pgp_get_lastp (pgp_key_t p) return NULL; } -pgp_key_t pgp_getkeybyaddr (ADDRESS * a, short abilities, pgp_ring_t keyring) +pgp_key_t pgp_getkeybyaddr (address_t * a, short abilities, pgp_ring_t keyring) { - ADDRESS *r, *p; + address_t *r, *p; LIST *hints = NULL; int weak = 0; @@ -861,7 +861,7 @@ pgp_key_t pgp_getkeybyaddr (ADDRESS * a, short abilities, pgp_ring_t keyring) this_key_has_weak = 1; } - rfc822_free_address (&r); + address_delete (&r); } if (match && !this_key_has_strong && this_key_has_invalid)