5 #include "gmime-extra.h"
8 typedef struct _notmuch_crypto {
10 notmuch_decryption_policy_t decrypt;
11 #if (GMIME_MAJOR_VERSION < 3)
12 GMimeCryptoContext* gpgctx;
13 GMimeCryptoContext* pkcs7ctx;
19 _notmuch_crypto_decrypt (notmuch_decryption_policy_t decrypt,
20 notmuch_message_t *message,
21 GMimeCryptoContext* crypto_ctx,
22 GMimeMultipartEncrypted *part,
23 GMimeDecryptResult **decrypt_result,
26 #if (GMIME_MAJOR_VERSION < 3)
28 _notmuch_crypto_get_gmime_ctx_for_protocol (_notmuch_crypto_t *crypto,
30 GMimeCryptoContext **ctx);
34 _notmuch_crypto_cleanup (_notmuch_crypto_t *crypto);