Changeset 3391:4bb7a8705ab8 for compose.c
Legend:
- Unmodified
- Added
- Removed
-
compose.c
r3311 r3391 167 167 { 168 168 case 1: /* (e)ncrypt */ 169 msg->security |= PGPENCRYPT;169 msg->security |= ENCRYPT; 170 170 break; 171 171 172 172 case 2: /* (s)ign */ 173 msg->security |= PGPSIGN;173 msg->security |= SIGN; 174 174 break; 175 175 … … 185 185 crypt_pgp_free_key (&p); 186 186 187 msg->security |= PGPSIGN;187 msg->security |= SIGN; 188 188 189 189 crypt_pgp_void_passphrase (); /* probably need a different passphrase */ … … 191 191 else 192 192 { 193 msg->security &= ~ PGPSIGN;193 msg->security &= ~SIGN; 194 194 } 195 195 … … 198 198 199 199 case 4: /* (b)oth */ 200 msg->security = PGPENCRYPT | PGPSIGN;200 msg->security = ENCRYPT | SIGN; 201 201 break; 202 202 … … 205 205 break; 206 206 } 207 208 if (msg->security && msg->security != APPLICATION_PGP) 209 msg->security |= APPLICATION_PGP; 210 else 211 msg->security = 0; 207 212 208 213 if(*redraw) … … 224 229 { 225 230 case 1: /* (e)ncrypt */ 226 msg->security |= SMIMEENCRYPT;231 msg->security |= ENCRYPT; 227 232 break; 228 233 229 234 case 3: /* encrypt (w)ith */ 230 msg->security |= SMIMEENCRYPT;235 msg->security |= ENCRYPT; 231 236 switch (mutt_multi_choice (_("1: DES, 2: Triple-DES, 3: RC2-40," 232 237 " 4: RC2-64, 5: RC2-128, or (f)orget it? "), … … 257 262 mutt_message("Can\'t sign: No key specified. use sign(as)."); 258 263 else 259 msg->security |= S MIMESIGN;264 msg->security |= SIGN; 260 265 break; 261 266 … … 266 271 mutt_str_replace (&SmimeDefaultKey, p); 267 272 268 msg->security |= S MIMESIGN;273 msg->security |= SIGN; 269 274 270 275 /* probably need a different passphrase */ … … 272 277 } 273 278 else 274 msg->security &= ~S MIMESIGN;279 msg->security &= ~SIGN; 275 280 276 281 *redraw = REDRAW_FULL; … … 278 283 279 284 case 5: /* (b)oth */ 280 msg->security = SMIMEENCRYPT | SMIMESIGN;285 msg->security = ENCRYPT | SIGN; 281 286 break; 282 287 … … 285 290 break; 286 291 } 292 293 if (msg->security && msg->security != APPLICATION_SMIME) 294 msg->security |= APPLICATION_SMIME; 295 else 296 msg->security = 0; 287 297 288 298 if(*redraw)
