]> git.notmuchmail.org Git - notmuch/commit
crypto: handle PKCS#7 envelopedData in _notmuch_crypto_decrypt
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 12 May 2020 22:29:37 +0000 (18:29 -0400)
committerDavid Bremner <david@tethera.net>
Sat, 23 May 2020 01:11:40 +0000 (22:11 -0300)
commit1a34f68a584c2731d33cd5d2a4ee4e6d7faf6a83
treeed5ef32f941e215bec4c8436c1ab2c42886735ab
parent2b108728c429408c5bf86f1852a205588821286e
crypto: handle PKCS#7 envelopedData in _notmuch_crypto_decrypt

In the two places where _notmuch_crypto_decrypt handles
multipart/encrypted messages (PGP/MIME), we should also handle PKCS#7
envelopedData (S/MIME).

This is insufficient for fully handling S/MIME encrypted data because
_notmuch_crypto_decrypt isn't yet actually invoked for envelopedData
parts, but that will happen in the following changes.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
util/crypto.c