X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=pgp.c;h=6bd70f296cdd038f7c345f18517aa9a0ac443811;hp=a6494993c3c84bcad4d954a612d767e0ce0e2ef8;hb=3e611c4b53a33408955152e1c9336f8643ea096e;hpb=7f7a0be369840b290248e5b0302beb447fa1b3cd diff --git a/pgp.c b/pgp.c index a649499..6bd70f2 100644 --- a/pgp.c +++ b/pgp.c @@ -22,12 +22,12 @@ #endif #include +#include #include #include #include "mutt.h" #include "enter.h" -#include "ascii.h" #include "handler.h" #include "mutt_curses.h" #include "pgp.h" @@ -68,7 +68,7 @@ time_t PgpExptime = 0; /* when does the cached passphrase expire? */ void pgp_void_passphrase (void) { - memset (PgpPass, 0, sizeof (PgpPass)); + p_clear(PgpPass, sizeof(PgpPass)); PgpExptime = 0; } @@ -687,7 +687,7 @@ static void pgp_extract_keys_from_attachment (FILE * fp, BODY * top) return; } - memset (&s, 0, sizeof (STATE)); + p_clear(&s, 1); s.fpin = fp; s.fpout = tempfp; @@ -842,7 +842,7 @@ int pgp_decrypt_mime (FILE * fpin, FILE ** fpout, BODY * b, BODY ** cur) b = b->parts->next; - memset (&s, 0, sizeof (s)); + p_clear(&s, 1); s.fpin = fpin; mutt_mktemp (tempfile); if ((*fpout = safe_fopen (tempfile, "w+")) == NULL) {