aboutsummaryrefslogtreecommitdiff
path: root/notmuch-client.h
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2017-07-14 15:12:00 +0200
committerDavid Bremner <david@tethera.net>2017-07-14 21:23:52 -0300
commite142de643d3bb4354f70e1490a97b491d1116e95 (patch)
treecb192df604b692bc415584c2c66e993efa6a7864 /notmuch-client.h
parent8492298a613e8e666d0f3054dadcb98b72a65ae4 (diff)
config: deprecate/drop crypto.gpg_path under gmime 2.6/3.0
gmime 3.0 no longer offers a means to set the path for gpg. Users can set $PATH anyway if they want to pick a differently-installed gpg (e.g. /usr/local/bin/gpg), so this isn't much of a reduction in functionality. The one main difference is for people who have tried to use "gpg2" to make use of gpg 2.1, but that isn't usefully co-installable anyway.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r--notmuch-client.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/notmuch-client.h b/notmuch-client.h
index 77b34184..11aefbb4 100644
--- a/notmuch-client.h
+++ b/notmuch-client.h
@@ -76,7 +76,9 @@ typedef struct notmuch_crypto {
notmuch_crypto_context_t* pkcs7ctx;
notmuch_bool_t verify;
notmuch_bool_t decrypt;
+#if (GMIME_MAJOR_VERSION < 3)
const char *gpgpath;
+#endif
} notmuch_crypto_t;
typedef struct notmuch_show_params {
@@ -289,12 +291,14 @@ void
notmuch_config_set_database_path (notmuch_config_t *config,
const char *database_path);
+#if (GMIME_MAJOR_VERSION < 3)
const char *
notmuch_config_get_crypto_gpg_path (notmuch_config_t *config);
void
notmuch_config_set_crypto_gpg_path (notmuch_config_t *config,
const char *gpg_path);
+#endif
const char *
notmuch_config_get_user_name (notmuch_config_t *config);