]> git.notmuchmail.org Git - notmuch/commit
crypto: record whether an actual decryption attempt happened
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 8 Dec 2017 06:23:58 +0000 (01:23 -0500)
committerDavid Bremner <david@tethera.net>
Fri, 8 Dec 2017 12:08:46 +0000 (08:08 -0400)
commitd137170b23f8ccd9f967445e101d6f694df1cad4
treea9d783de0ce8bcfcd59f49703e82adb5c8c240ff
parent181d4091c408b8ca014ec245ecdae602942b70ce
crypto: record whether an actual decryption attempt happened

In our consolidation of _notmuch_crypto_decrypt, the callers lost
track a little bit of whether any actual decryption was attempted.

Now that we have the more-subtle "auto" policy, it's possible that
_notmuch_crypto_decrypt could be called without having any actual
decryption take place.

This change lets the callers be a little bit smarter about whether or
not any decryption was actually attempted.
lib/index.cc
mime-node.c
util/crypto.c
util/crypto.h