X-Git-Url: http://rtime.felk.cvut.cz/gitweb/notmuch.git/blobdiff_plain/11858e2457b3a05e643d2aaca852dff0fb9b2ad8..c5c5770b22dfdb930558979668756cf51a7cc482:/crypto.c diff --git a/crypto.c b/crypto.c index fbe5aeb6..cb361e11 100644 --- a/crypto.c +++ b/crypto.c @@ -45,6 +45,9 @@ notmuch_crypto_get_context (notmuch_crypto_t *crypto, const char *protocol) g_object_unref (session); #endif if (crypto->gpgctx) { +#ifdef GMIME_ATLEAST_26 + g_mime_gpg_context_set_use_agent ((GMimeGpgContext*) crypto->gpgctx, TRUE); +#endif g_mime_gpg_context_set_always_trust ((GMimeGpgContext*) crypto->gpgctx, FALSE); } else { fprintf (stderr, "Failed to construct gpg context.\n");