Changeset 5436:17525e17fa7b
- Timestamp:
- 2008-07-01 13:32:33 (3 months ago)
- Author:
- Brendan Cully <brendan@…>
- Branch:
- HEAD
- Message:
-
Bail out of copy if decryption is requested but the desired engine is missing.
This closes #2684, but handling of mixed crypto in a single message
needs more investigation.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r5435
|
r5436
|
|
| 655 | 655 | && (flags & M_CM_DECODE_CRYPT) && (hdr->security & ENCRYPT)) |
| 656 | 656 | { |
| 657 | | BODY *cur; |
| | 657 | BODY *cur = NULL; |
| 658 | 658 | FILE *fp; |
| 659 | 659 | |
| … |
… |
|
| 673 | 673 | if (crypt_smime_decrypt_mime (fpin, &fp, hdr->content, &cur)) |
| 674 | 674 | return (-1); |
| | 675 | } |
| | 676 | |
| | 677 | if (!cur) |
| | 678 | { |
| | 679 | mutt_error (_("No decryption engine available for message")); |
| | 680 | return -1; |
| 675 | 681 | } |
| 676 | 682 | |