summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* email-print-mime-structure: Avoid test suite dependency on dirmngrDaniel Kahn Gillmor2019-12-04
| | | | | | | | There is no clear reason why gpgsm should try to invoke dirmngr (see https://dev.gnupg.org/T4765), but for now we can explicitly avoid the checks. Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
* email-print-mime-structure: handle one-part PKCS#7 signature objectsDaniel Kahn Gillmor2019-11-28
| | | | | | | | | | | | | | | | PKCS#7 offers a signed-only mode which is distinct from multipart/signed. This mode is more robust to breakage by transforming MTAs, but it is also unreadable *unless* the receiver knows how to cope with S/MIME. See https://tools.ietf.org/html/rfc8551#section-3.5 for more details about the different formats. email-print-mime-structure should now be able to handle these messages and display the structure of their content as well. Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net> Acked-by: Sean Whitton <spwhitton@spwhitton.name>
* email-print-mime-structure: decrypt S/MIME parts with OpenSSLDaniel Kahn Gillmor2019-11-28
| | | | | | | | | | If the user supplies a secret key like the ones found in https://www.ietf.org/id/draft-dkg-lamps-samples-01.html, then email-print-mime-structure will try to use that for decryption of CMS-encrypted (S/MIME) message parts. Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net> Acked-by: Sean Whitton <spwhitton@spwhitton.name>
* email-print-mime-structure: decrypt S/MIME parts using gpgsmDaniel Kahn Gillmor2019-11-28
| | | | | | | | | | Decrypt ciphertext using gpgsm if the user has indicated that it's ok. This includes a new element in the test suite, which uses secret key material from https://www.ietf.org/id/draft-dkg-lamps-samples-01.html Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net> Acked-by: Sean Whitton <spwhitton@spwhitton.name>
* normalise redirectsSean Whitton2019-11-25
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* email-print-mime-structure: Add test for --use-gpg-agent as wellDaniel Kahn Gillmor2019-11-25
| | | | Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
* email-print-mime-structure: added test for PGP/MIME decryptionDaniel Kahn Gillmor2019-11-25
| | | | | | | The secret key material in this test comes from https://datatracker.ietf.org/doc/draft-bre-openpgp-samples/ Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
* email-print-mime-structure: simple baseline test suiteDaniel Kahn Gillmor2019-11-25
I want to ensure that any changes don't ultimately break the behavior of email-print-mime-structure. Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>