[Patch v4 5/5] test: add broken test for SMIME decryption with notmuch CLI

David Bremner david at tethera.net
Tue Jan 27 23:36:21 PST 2015


David Bremner <david at tethera.net> writes:

> David Bremner <david at tethera.net> writes:
>
>> The test JSON here is not correct, but the larger problem is thatit
>> seems like no actual decryption is being done.
>
> I played with this some more, and it seems like Jamie's code (and the
> gmime sample code [1] expects the top level part to be
> multipart/encrypted.

By repeated bludgeoning I convinced notmuch show to actually run the
decryption code, but then I hit another problem: there isn't an obvious
high level way to decrypt an application/(x)-pkcs7-mime part (and the
current code only works for multipart/encrypted). It should
be possible up GMimeStreams and use g_mime_crypto_context_decrypt, but
that seems like quite a bit more work than calling
g_mime_multipart_encrypted_decrypt.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.diff
Type: text/x-diff
Size: 2551 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20150128/e15b2ed8/attachment.diff>


More information about the notmuch mailing list