Skip to content
  • Kevin J. McCarthy's avatar
    Add GnuPG status fd checks for inline pgp. · edb4ec84
    Kevin J. McCarthy authored
    The difficulty is that "BEGIN PGP MESSAGE" could be a signed and
    armored part, so we can't fail hard if it isn't encrypted.
    
    Change pgp_check_decryption_okay() to return more status codes, with
    >=0 indicating an actual decryption; -2 and -1 indicating plaintext
    found; and -3 indicating an actual DECRYPTION_FAILED status code seen.
    
    Fail hard on -3, but change the message for -2 and -1 to indicate the
    message was not encrypted.
    edb4ec84