X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=pgp.c;h=bdcba07eae506008d7d03ea876648fe486e491bb;hp=d40d8cbec3830f2b9f5caade52065086bd3f011f;hb=344312314eec327c3bf47f86950a5ad6c616e031;hpb=2ea77d3b2827ba23feb756ce2fb936565ae38998 diff --git a/pgp.c b/pgp.c index d40d8cb..bdcba07 100644 --- a/pgp.c +++ b/pgp.c @@ -25,13 +25,15 @@ #include #include #include +#include + +#include #include "mutt.h" #include "enter.h" #include "handler.h" #include "mutt_curses.h" #include "pgp.h" -#include "mime.h" #include "copy.h" #include "attach.h" @@ -210,7 +212,7 @@ static void pgp_copy_clearsigned (FILE * fpin, STATE * s, char *charset) break; if (armor_header) { - char *p = str_skip_initws (buf); + char *p = vskipspaces(buf); if (*p == '\0') armor_header = 0; @@ -268,7 +270,7 @@ int pgp_application_pgp_handler (BODY * m, STATE * s) bytes -= (offset - last_pos); /* don't rely on m_strlen(buf) */ last_pos = offset; - if (str_ncmp ("-----BEGIN PGP ", buf, 15) == 0) { + if (m_strncmp("-----BEGIN PGP ", buf, 15) == 0) { clearsign = 0; start_pos = last_pos; @@ -506,7 +508,7 @@ static int pgp_check_traditional_one_body (FILE * fp, BODY * b, } while (fgets (buf, sizeof (buf), tfp)) { - if (str_ncmp ("-----BEGIN PGP ", buf, 15) == 0) { + if (m_strncmp("-----BEGIN PGP ", buf, 15) == 0) { if (m_strcmp("MESSAGE-----\n", buf + 15) == 0) enc = 1; else if (m_strcmp("SIGNED MESSAGE-----\n", buf + 15) == 0)