5 #include "gmime-extra.h"
12 typedef struct _notmuch_crypto {
14 notmuch_decryption_policy_t decrypt;
15 #if (GMIME_MAJOR_VERSION < 3)
16 GMimeCryptoContext* gpgctx;
17 GMimeCryptoContext* pkcs7ctx;
23 _notmuch_crypto_decrypt (bool *attempted,
24 notmuch_decryption_policy_t decrypt,
25 notmuch_message_t *message,
26 GMimeCryptoContext* crypto_ctx,
27 GMimeMultipartEncrypted *part,
28 GMimeDecryptResult **decrypt_result,
31 #if (GMIME_MAJOR_VERSION < 3)
33 _notmuch_crypto_get_gmime_ctx_for_protocol (_notmuch_crypto_t *crypto,
35 GMimeCryptoContext **ctx);
39 _notmuch_crypto_cleanup (_notmuch_crypto_t *crypto);