ch = 'P';
else if (WithCrypto && hdr->security & SIGN)
ch = 's';
- else if ((WithCrypto & APPLICATION_PGP) && hdr->security & PGPKEY)
+ else if ((WithCrypto & APPLICATION_PGP) &&
+ ((hdr->security & PGPKEY) == PGPKEY))
ch = 'K';
snprintf (buf2, sizeof (buf2),
case MUTT_PGP_KEY:
if (!(WithCrypto & APPLICATION_PGP))
break;
- return (pat->not ^ ((h->security & APPLICATION_PGP) && (h->security & PGPKEY)));
+ return (pat->not ^ ((h->security & PGPKEY) == PGPKEY));
case MUTT_XLABEL:
return (pat->not ^ (h->env->x_label && patmatch (pat, h->env->x_label) == 0));
case MUTT_HORMEL:
secured = !crypt_smime_decrypt_mime (fp, &new_fp, m, &new_body);
/* S/MIME nesting */
- if ((mutt_is_application_smime (new_body) & SMIMEOPAQUE))
+ if ((mutt_is_application_smime (new_body) & SMIMEOPAQUE) == SMIMEOPAQUE)
{
BODY *outer_new_body = new_body;
FILE *outer_fp = new_fp;
cmflags = MUTT_CM_DECODE_PGP;
pgp &= ~PGPENCRYPT;
}
- else if ((WithCrypto & APPLICATION_PGP)
- && (mutt_is_application_pgp (hdr->content) & PGPENCRYPT))
+ else if ((WithCrypto & APPLICATION_PGP) &&
+ ((mutt_is_application_pgp (hdr->content) & PGPENCRYPT) == PGPENCRYPT))
{
chflags |= CH_MIME | CH_TXTPLAIN;
cmflags = MUTT_CM_DECODE | MUTT_CM_CHARCONV;
pgp &= ~PGPENCRYPT;
}
- else if ((WithCrypto & APPLICATION_SMIME)
- && mutt_is_application_smime (hdr->content) & SMIMEENCRYPT)
+ else if ((WithCrypto & APPLICATION_SMIME) &&
+ ((mutt_is_application_smime (hdr->content) & SMIMEENCRYPT) == SMIMEENCRYPT))
{
chflags |= CH_MIME | CH_TXTPLAIN;
cmflags = MUTT_CM_DECODE | MUTT_CM_CHARCONV;