diff options
author | David Bremner <david@tethera.net> | 2017-07-16 01:01:46 +0200 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2017-07-15 21:43:39 -0300 |
commit | edb933b25d386856a3a322b78c4af44e4db39c7a (patch) | |
tree | 33ef6adc0c94d1f6a279f3159e998615280f9019 /notmuch-client.h | |
parent | 66c9b11bb05e09a7fa2a8ff390190cc16c1499e6 (diff) |
crypto: clean up unused definitions in gmime 3.0
based on the same patch from dkg as the previous commit.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r-- | notmuch-client.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/notmuch-client.h b/notmuch-client.h index 11aefbb4..ae37360b 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -72,11 +72,11 @@ typedef struct notmuch_show_format { } notmuch_show_format_t; typedef struct notmuch_crypto { - notmuch_crypto_context_t* gpgctx; - notmuch_crypto_context_t* pkcs7ctx; notmuch_bool_t verify; notmuch_bool_t decrypt; #if (GMIME_MAJOR_VERSION < 3) + notmuch_crypto_context_t* gpgctx; + notmuch_crypto_context_t* pkcs7ctx; const char *gpgpath; #endif } notmuch_crypto_t; @@ -180,8 +180,10 @@ typedef struct _notmuch_config notmuch_config_t; void notmuch_exit_if_unsupported_format (void); +#if (GMIME_MAJOR_VERSION <3) notmuch_crypto_context_t * notmuch_crypto_get_context (notmuch_crypto_t *crypto, const char *protocol); +#endif int notmuch_crypto_cleanup (notmuch_crypto_t *crypto); |