diff options
| author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2019-05-25 14:04:06 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2019-05-26 08:20:23 -0300 |
| commit | 4cb789aa090fb6ba3c7897584ecbcc0a547b2f81 (patch) | |
| tree | 0bc7df43eb4d4450ddfac4651376785ed1ce2c29 /test/T355-smime.sh | |
| parent | d187a6993e25b1e100790e918156f5d95d371899 (diff) | |
cli/show: emit new whole-message crypto status output
This allows MUAs that don't want to think about per-mime-part
cryptographic status to have a simple high-level overview of the
message's cryptographic state.
Sensibly structured encrypted and/or signed messages will work fine
with this. The only requirement for the simplest encryption + signing
is that the message have all of its encryption and signing protection
(the "cryptographic envelope") in a contiguous set of MIME layers at
the very outside of the message itself.
This is because messages with some subparts signed or encrypted, but
with other subparts with no cryptographic protection is very difficult
to reason about, and even harder for the user to make sense of or work
with.
For further characterization of the Cryptographic Envelope and some of
the usability tradeoffs, see here:
https://dkg.fifthhorseman.net/blog/e-mail-cryptography.html#cryptographic-envelope
Diffstat (limited to 'test/T355-smime.sh')
| -rwxr-xr-x | test/T355-smime.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/T355-smime.sh b/test/T355-smime.sh index e410286b..336da917 100755 --- a/test/T355-smime.sh +++ b/test/T355-smime.sh @@ -50,8 +50,8 @@ test_expect_equal_file EXPECTED OUTPUT test_begin_subtest "signature verification (notmuch CLI)" output=$(notmuch show --format=json --verify subject:"test signed message 001" \ | notmuch_json_show_sanitize \ - | sed -e 's|"created": [-1234567890]*|"created": 946728000|' \ - -e 's|"expires": [-1234567890]*|"expires": 424242424|' ) + | sed -e 's|"created": [-1234567890]*|"created": 946728000|g' \ + -e 's|"expires": [-1234567890]*|"expires": 424242424|g' ) expected='[[[{"id": "XXXXX", "match": true, "excluded": false, @@ -59,6 +59,7 @@ expected='[[[{"id": "XXXXX", "timestamp": 946728000, "date_relative": "2000-01-01", "tags": ["inbox","signed"], + "crypto": {"signed": {"status": [{"fingerprint": "'$FINGERPRINT'", "status": "good","userid": "CN=Notmuch Test Suite","expires": 424242424, "created": 946728000}]}}, "headers": {"Subject": "test signed message 001", "From": "Notmuch Test Suite <test_suite@notmuchmail.org>", "To": "test_suite@notmuchmail.org", |
