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