Changeset 5437:48e90b82a4ee
- Timestamp:
- 2008-07-01 14:49:21 (5 months ago)
- Author:
- Brendan Cully <brendan@…>
- Branch:
- HEAD
- Message:
-
Handle DONTHANDLEPGPKEYS in handler instead of crypto modules.
This lets gpgme and classic pgp share a bit of logic, and unbreaks key
extraction at least for classic PGP.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r5435
|
r5437
|
|
| | 1 | 2008-07-01 13:32 -0700 Brendan Cully <brendan@kublai.com> (17525e17fa7b) |
| | 2 | |
| | 3 | * copy.c: Bail out of copy if decryption is requested but the desired |
| | 4 | engine is missing. This closes #2684, but handling of mixed crypto |
| | 5 | in a single message needs more investigation. |
| | 6 | |
| | 7 | 2008-07-01 01:10 -0700 rtc <rtc@gmx.de> (49fe0292b503) |
| | 8 | |
| | 9 | * copy.c: When deleting attachments, always print newline |
| | 10 | separating header from body. Closes #3085. |
| | 11 | |
| 1 | 12 | 2008-06-29 01:09 -0700 Brendan Cully <brendan@kublai.com> (677e7712d735) |
| 2 | 13 | |
-
|
r5434
|
r5437
|
|
| 2045 | 2045 | needpass = 0; |
| 2046 | 2046 | } |
| 2047 | | else if (!option (OPTDONTHANDLEPGPKEYS) && |
| 2048 | | !mutt_strcmp ("PUBLIC KEY BLOCK-----\n", buf + 15)) |
| 2049 | | { |
| 2050 | | needpass = 0; |
| 2051 | | pgp_keyblock =1; |
| 2052 | | } |
| | 2047 | else if (!mutt_strcmp ("PUBLIC KEY BLOCK-----\n", buf + 15)) |
| | 2048 | { |
| | 2049 | needpass = 0; |
| | 2050 | pgp_keyblock = 1; |
| | 2051 | } |
| 2053 | 2052 | else |
| 2054 | 2053 | { |
-
|
r5429
|
r5437
|
|
| 1580 | 1580 | else if (WithCrypto && b->type == TYPEAPPLICATION) |
| 1581 | 1581 | { |
| 1582 | | if ((WithCrypto & APPLICATION_PGP) && mutt_is_application_pgp (b)) |
| | 1582 | if (option (OPTDONTHANDLEPGPKEYS) |
| | 1583 | && !ascii_strcasecmp("pgp-keys", b->subtype)) |
| | 1584 | { |
| | 1585 | /* pass raw part through for key extraction */ |
| | 1586 | plaintext = 1; |
| | 1587 | } |
| | 1588 | else if ((WithCrypto & APPLICATION_PGP) && mutt_is_application_pgp (b)) |
| 1583 | 1589 | handler = crypt_pgp_application_pgp_handler; |
| 1584 | | if ((WithCrypto & APPLICATION_SMIME) && mutt_is_application_smime(b)) |
| | 1590 | else if ((WithCrypto & APPLICATION_SMIME) && mutt_is_application_smime(b)) |
| 1585 | 1591 | handler = crypt_smime_application_smime_handler; |
| 1586 | 1592 | } |
-
|
r5422
|
r5437
|
|
| 294 | 294 | needpass = 0; |
| 295 | 295 | } |
| 296 | | else if (!option (OPTDONTHANDLEPGPKEYS) && |
| 297 | | mutt_strcmp ("PUBLIC KEY BLOCK-----\n", buf + 15) == 0) |
| | 296 | else if (!mutt_strcmp ("PUBLIC KEY BLOCK-----\n", buf + 15)) |
| 298 | 297 | { |
| 299 | 298 | needpass = 0; |
| 300 | | pgp_keyblock =1; |
| | 299 | pgp_keyblock = 1; |
| 301 | 300 | } |
| 302 | 301 | else |