From: Thomas Roessler Date: Thu, 17 Jun 2004 20:39:20 +0000 (+0000) Subject: Change S/MIME send menu behavior to xor instead of or, so it behaves X-Git-Tag: mutt-1-5-15-rel~171 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=467297f65d06e1c45952ce9bfbe4b5ff030fc26b;p=mutt Change S/MIME send menu behavior to xor instead of or, so it behaves the same way as the PGP send menu. --- diff --git a/smime.c b/smime.c index a510ed1e..3224d207 100644 --- a/smime.c +++ b/smime.c @@ -1944,7 +1944,7 @@ int smime_send_menu (HEADER *msg, int *redraw) _("eswabf"))) { case 1: /* (e)ncrypt */ - msg->security |= ENCRYPT; + msg->security ^= ENCRYPT; break; case 3: /* encrypt (w)ith */ @@ -1977,7 +1977,7 @@ int smime_send_menu (HEADER *msg, int *redraw) if(!SmimeDefaultKey) mutt_message("Can\'t sign: No key specified. use sign(as)."); else - msg->security |= SIGN; + msg->security ^= SIGN; break; case 4: /* sign (a)s */ @@ -1998,7 +1998,7 @@ int smime_send_menu (HEADER *msg, int *redraw) break; case 5: /* (b)oth */ - msg->security = ENCRYPT | SIGN; + msg->security |= (ENCRYPT | SIGN); break; case 6: /* (f)orget it */