GPGME trouble finding gpg executable.

Hans-Christoph Steiner hans at guardianproject.info
Tue Jan 21 18:24:43 CET 2014



On 01/21/2014 12:13 PM, chris wrote:
> 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.

If version is NULL, that probably means that the gpg command is not found, or
is crashing or something like that.

.hc

-- 
PGP fingerprint: 5E61 C878 0F86 295C E17D  8677 9F0F E587 374B BE81



More information about the Gnupg-devel mailing list