Default configuration of GnuPG preferred chiphers and hashfunctions
Werner Koch
wk at gnupg.org
Sun Jan 31 19:20:15 CET 2016
On Sat, 30 Jan 2016 10:13, sasc0041 at stud.hs-kl.de said:
> error = gpgme_ctx_set_engine_info(mContext, GPGME_PROTOCOL_OpenPGP, NULL,
> CONFIG_DIR);
> if(error)
> return false;
You should print the error here:
err = gpgme_ctx_set_engine_info(mContext, GPGME_PROTOCOL_OpenPGP, NULL,
CONFIG_DIR);
if (err)
{
fprintf (stderr, "set_engine_info(%s) failed: %s <%s>\n",
CONFIG_DIR, gpg_strerror (err), gpg_strsource (err));
return false;
}
You should better not use the symbol "error" because that is a glibc
function and you _may_ run in conflicts. If you can't find the problem
set the GPGME_DEBUG envvar to trace the operation.
Shalom-Salam,
Werner
More information about the Gnupg-users
mailing list