projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rocco Rutte:
[apps/madmutt.git]
/
crypt-gpgme.c
diff --git
a/crypt-gpgme.c
b/crypt-gpgme.c
index
03eb846
..
b9b7613
100644
(file)
--- a/
crypt-gpgme.c
+++ b/
crypt-gpgme.c
@@
-3827,21
+3827,23
@@
static int gpgme_send_menu (HEADER * msg, int *redraw, int is_smime)
if (is_smime)
choice =
mutt_multi_choice (_
if (is_smime)
choice =
mutt_multi_choice (_
- ("S/MIME (e)ncrypt, (s)ign, sign (a)s, (b)oth, (
t)oggle or (f)orget it
?"),
- _("esab
tf
"));
+ ("S/MIME (e)ncrypt, (s)ign, sign (a)s, (b)oth, (
p)gp or (c)lear
?"),
+ _("esab
pfc
"));
else
choice =
mutt_multi_choice (_
else
choice =
mutt_multi_choice (_
- ("PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth,
(t)oggle or (f)orget it
?"),
- _("esab
tf
"));
+ ("PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth,
s/(m)ime or (c)lear
?"),
+ _("esab
mfc
"));
switch (choice) {
case 1: /* (e)ncrypt */
msg->security |= (is_smime ? SMIMEENCRYPT : PGPENCRYPT);
switch (choice) {
case 1: /* (e)ncrypt */
msg->security |= (is_smime ? SMIMEENCRYPT : PGPENCRYPT);
+ msg->security &= ~(is_smime ? SMIMESIGN : PGPSIGN);
break;
case 2: /* (s)ign */
msg->security |= (is_smime ? SMIMESIGN : PGPSIGN);
break;
case 2: /* (s)ign */
msg->security |= (is_smime ? SMIMESIGN : PGPSIGN);
+ msg->security &= ~(is_smime ? SMIMEENCRYPT : PGPENCRYPT);
break;
case 3: /* sign (a)s */
break;
case 3: /* sign (a)s */
@@
-3856,9
+3858,11
@@
static int gpgme_send_menu (HEADER * msg, int *redraw, int is_smime)
msg->security |= (is_smime ? SMIMESIGN : PGPSIGN);
}
msg->security |= (is_smime ? SMIMESIGN : PGPSIGN);
}
+#if 0
else {
msg->security &= (is_smime ? ~SMIMESIGN : ~PGPSIGN);
}
else {
msg->security &= (is_smime ? ~SMIMESIGN : ~PGPSIGN);
}
+#endif
*redraw = REDRAW_FULL;
break;
*redraw = REDRAW_FULL;
break;
@@
-3867,16
+3871,16
@@
static int gpgme_send_menu (HEADER * msg, int *redraw, int is_smime)
(is_smime ? (SMIMEENCRYPT | SMIMESIGN) : (PGPENCRYPT | PGPSIGN));
break;
(is_smime ? (SMIMEENCRYPT | SMIMESIGN) : (PGPENCRYPT | PGPSIGN));
break;
- case 5: /* (
t)oggl
e */
+ case 5: /* (
p)gp or s/(m)im
e */
is_smime = !is_smime;
break;
is_smime = !is_smime;
break;
- case 6: /* (
f)orget it
*/
+ case 6: /* (
c)lear
*/
msg->security = 0;
break;
}
msg->security = 0;
break;
}
- if (choice == 6);
+ if (choice == 6
|| choice == 7
);
else if (is_smime) {
msg->security &= ~APPLICATION_PGP;
msg->security |= APPLICATION_SMIME;
else if (is_smime) {
msg->security &= ~APPLICATION_PGP;
msg->security |= APPLICATION_SMIME;