X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=pgp.c;h=0a2ed872cd92282e7f75da7eff35f6f564893f48;hp=da199cef7352805802d333fb36d7935dc045ba8e;hb=1dc7032b59cc5b91d70076ed228bda8caf65a7f3;hpb=ef7b80006ebb47372d69c64e8b2b2f0764333d55 diff --git a/pgp.c b/pgp.c index da199ce..0a2ed87 100644 --- a/pgp.c +++ b/pgp.c @@ -21,6 +21,9 @@ # include "config.h" #endif +#include +#include + #include "mutt.h" #include "enter.h" #include "ascii.h" @@ -31,8 +34,6 @@ #include "copy.h" #include "attach.h" -#include "lib/mem.h" -#include "lib/intl.h" #include "lib/str.h" #include "lib/debug.h" @@ -161,7 +162,7 @@ static int pgp_copy_checksig (FILE * fpin, FILE * fpout) fputs (line, fpout); fputc ('\n', fpout); } - mem_free (&line); + p_delete(&line); } else { debug_print (2, ("No pattern.\n")); @@ -1142,7 +1143,7 @@ char *pgp_findKeys (ADDRESS * to, ADDRESS * cc, ADDRESS * bcc) k_info = pgp_getkeybystr (keyID, KEYFLAG_CANENCRYPT, PGP_PUBRING); } else if (r == -1) { - mem_free (&keylist); + p_delete(&keylist); rfc822_free_address (&tmp); rfc822_free_address (&addr); return NULL; @@ -1159,7 +1160,7 @@ char *pgp_findKeys (ADDRESS * to, ADDRESS * cc, ADDRESS * bcc) if ((key = pgp_ask_for_key (buf, q->mailbox, KEYFLAG_CANENCRYPT, PGP_PUBRING)) == NULL) { - mem_free (&keylist); + p_delete(&keylist); rfc822_free_address (&tmp); rfc822_free_address (&addr); return NULL; @@ -1172,7 +1173,7 @@ char *pgp_findKeys (ADDRESS * to, ADDRESS * cc, ADDRESS * bcc) bypass_selection: keylist_size += str_len (keyID) + 4; - mem_realloc (&keylist, keylist_size); + p_realloc(&keylist, keylist_size); sprintf (keylist + keylist_used, "%s0x%s", keylist_used ? " " : "", /* __SPRINTF_CHECKED__ */ keyID); keylist_used = str_len (keylist);