]> granicus.if.org Git - mutt/commitdiff
Change S/MIME send menu behavior to xor instead of or, so it behaves
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 17 Jun 2004 20:39:20 +0000 (20:39 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 17 Jun 2004 20:39:20 +0000 (20:39 +0000)
the same way as the PGP send menu.

smime.c

diff --git a/smime.c b/smime.c
index a510ed1e67f0ce53decde7fca9ab4de679b12978..3224d207cbb3c44617cd334af6eaa5b10e732e67 100644 (file)
--- 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 */