]> git.cworth.org Git - notmuch/commit
crypto: Avoid explicit handling of GMimeCryptoContext in gmime 3
authorDavid Bremner <david@tethera.net>
Sat, 15 Jul 2017 23:01:45 +0000 (01:01 +0200)
committerDavid Bremner <david@tethera.net>
Sun, 16 Jul 2017 00:43:08 +0000 (21:43 -0300)
commit66c9b11bb05e09a7fa2a8ff390190cc16c1499e6
tree675c212ab16b4cd74e5d477b765ae38b2f06b0f1
parent606e320e472b486359cf7a44c488b29e717a3ac8
crypto: Avoid explicit handling of GMimeCryptoContext in gmime 3

gmime 3.0 knows how to select the correct GMimeCryptoContext
automatically, so a bunch of the code in notmuch can be dropped in
that case.

The #ifdef removal of the crypto stuff is better than #define aliasing
in gmime-extra.h for this stuff.  When built against gmime 3.0:

    * it reduces compiled code, and
    * it avoids initializing unused gpgme contexts

(based on a patch from dkg)
crypto.c
mime-node.c