Changeset 5437:48e90b82a4ee

Show
Ignore:
Timestamp:
2008-07-01 14:49:21 (3 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:
4 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r5435 r5437  
     12008-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 
     72008-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 
    1122008-06-29 01:09 -0700  Brendan Cully  <brendan@kublai.com>  (677e7712d735) 
    213 
  • crypt-gpgme.c

    r5434 r5437  
    20452045              needpass = 0; 
    20462046            } 
    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          }  
    20532052          else 
    20542053            { 
  • handler.c

    r5429 r5437  
    15801580  else if (WithCrypto && b->type == TYPEAPPLICATION) 
    15811581  { 
    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)) 
    15831589      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)) 
    15851591      handler = crypt_smime_application_smime_handler; 
    15861592  } 
  • pgp.c

    r5422 r5437  
    294294        needpass = 0; 
    295295      } 
    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)) 
    298297      { 
    299298        needpass = 0; 
    300         pgp_keyblock =1; 
     299        pgp_keyblock = 1; 
    301300      }  
    302301      else