General error when creating keypair

Werner Koch wk at gnupg.org
Wed Dec 30 21:55:49 CET 2015


On Tue, 29 Dec 2015 12:24, thecissou98 at hotmail.fr said:

>     gpgme_set_global_flag("debug", "9");
>     gpgme_set_global_flag("disable-gpgconf","1");
>     gpgme_set_global_flag("gpg-name","gpgconf");

Why are you using these gobal flags?  They are only useful in some
certain environments.

Disabling gpgconf and chnaging the name of gpg to gppconf is definitely
not a good ideas.  c+p error?  Remove all these flags.

>     if(err!=GPG_ERR_NO_ERROR) return err;

BTW, using

      if (err) return err;

is much easier to read.


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-users mailing list