--- crypt-gpgme.c.orig 2009-07-20 22:18:00 +0200 +++ crypt-gpgme.c 2009-07-20 22:18:45 +0200 @@ -352,6 +352,7 @@ GpgmeLocaleSet = 1; } + gpgme_check_version (NULL); err = gpgme_new (&ctx); if (err) { @@ -581,6 +582,7 @@ gpgme_key_t key = NULL; gpgme_ctx_t context = NULL; + gpgme_check_version (NULL); err = gpgme_new (&context); if (! err) err = gpgme_set_protocol (context, protocol); @@ -1869,6 +1871,7 @@ int more; int rc = -1; + gpgme_check_version (NULL); if ((err = gpgme_new (&tmpctx)) != GPG_ERR_NO_ERROR) { dprint (1, (debugfile, "Error creating GPGME context\n")); @@ -3460,6 +3463,7 @@ print_key_info (key->kobj, fp); + gpgme_check_version (NULL); err = gpgme_new (&listctx); if (err) { @@ -3583,6 +3587,7 @@ if (!pattern) return NULL; + gpgme_check_version (NULL); err = gpgme_new (&ctx); if (err) {