Re: Default configuration of GnuPG preferred chiphers and hashfunctions

2016-01-31 Thread Werner Koch
On Sat, 30 Jan 2016 10:13, sasc0...@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(

Re: Default configuration of GnuPG preferred chiphers and hashfunctions

2016-01-30 Thread Robert J. Hansen
> I somehow can't get GPGME to work with a custom configuration > directory for GnuPG. Every time I set a path any key generation fails > with a GPGME_ERR_GENERAL afterwards. Let's tackle this. > const char* dir = "/home/myuser/crypttest"; So far so good. > // error = gpgme_set_engine_info(GPGM

Default configuration of GnuPG preferred chiphers and hashfunctions

2016-01-30 Thread Sandra Schreiner
Hello again, I somehow can't get GPGME to work with a custom configuration directory for GnuPG. Every time I set a path any key generation fails with a GPGME_ERR_GENERAL afterwards. There is nothing special about how I set the path: gpgme_engine_info_t info; gpgme_error_t error; con