]> git.notmuchmail.org Git - notmuch/commit - util/crypto.c
util/crypto: _notmuch_message_crypto: tracks message-wide crypto state
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Sat, 25 May 2019 18:04:03 +0000 (14:04 -0400)
committerDavid Bremner <david@tethera.net>
Sun, 26 May 2019 11:20:23 +0000 (08:20 -0300)
commit74919c226eafad4de6b3a823f83a8be970e77e24
tree992f7ed08df7eb29df3c484c1ba73b1b6c4746d6
parent9300defd64acf68b8e6fa6fbd89b8050168bb63d
util/crypto: _notmuch_message_crypto: tracks message-wide crypto state

E-mail encryption and signatures reported by notmuch are at the MIME
part level.  This makes sense in the dirty details, but for users we
need to have a per-message conception of the cryptographic state of
the e-mail.  (see
https://dkg.fifthhorseman.net/blog/e-mail-cryptography.html for more
discussion of why this is important).

The object created in this patch is a useful for tracking the
cryptographic state of the underlying message as a whole, based on a
depth-first search of the message's MIME structure.

This object stores a signature list of the message, but we don't
handle it yet.  Further patches in this series will make use of the
signature list.
util/crypto.c
util/crypto.h