GPGME trouble finding gpg executable.
chris
chris.gilg at link-comm.com
Tue Jan 21 18:13:04 CET 2014
Hans-Christoph Steiner <hans <at> guardianproject.info> writes:
>
>
> "Invalid crypto engine" can mean a lot of things, I've found. Try turning on
> the debug log to get more info. You can do it with an env var, or this
function:
>
> gpgme_set_global_flag("debug", "8:/path/to/gpgme.log");
>
> .hc
>
>
I get:
GPGME 2014-01-21 10:03:11 <0x10fc> gpgme_debug: level=9
GPGME 2014-01-21 10:03:11 <0x10fc> gpgme_check_version: call: 0=00000000,
req_version=(null), VERSION=1.4.3
GPGME 2014-01-21 10:03:11 <0x10fc> gpgme_check_version_internal: call:
0=00000000, req_version=(null), offset_sig_validity=
32
GPGME 2014-01-21 10:03:11 <0x10fc> gpgme_check_version: call: 0=00000000,
req_version=(null), VERSION=1.4.3
GPGME 2014-01-21 10:03:11 <0x10fc> gpgme_check_version_internal: call:
0=00000000, req_version=(null), offset_sig_validity=
32
GPGME 2014-01-21 10:03:11 <0x10fc> gpgme_set_locale: enter: ctx=00000000,
category=2, value=English_United States.1252
GPGME 2014-01-21 10:03:11 <0x10fc> gpgme_set_locale: leave
GPGME 2014-01-21 10:03:11 <0x10fc> engine.c:170: returning error: Invalid
crypto engine
I took a look at engine.c:170 :
result = _gpgme_compare_versions (info->version,
info->req_version);
UNLOCK (engine_info_lock);
Line 170: return result ? 0 : trace_gpg_error (GPG_ERR_INV_ENGINE);
It would appear that the _gpgme_compare_versions() is returning false. I'm
guessing since info->version is NULL, it can't compare the version numbers
and returns false.
More information about the Gnupg-devel
mailing list