Pinentry linking to libassuan?
Werner Koch
wk at gnupg.org
Mon Jun 15 11:19:09 CEST 2015
On Sat, 13 Jun 2015 22:02, neal at walfield.org said:
> (option_handler): Return a gpg_error_t, not an int. Replace use of
> ASSUAN_Out_Of_Core with gpg_err_make (GPG_ERR_SOURCE_PINENTRY,
> GPG_ERR_ENOMEM), etc.
Note that you can use
#ifdef GPG_ERR_SOURCE_DEFAULT
# error GPG_ERR_SOURCE_DEFAULT already defined
#endif
#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_PINENTRY
before you include gpg-error.h or even easier into configure's
AH_BOTTOM() so that it shows up in config.h.
After a system call you may also want to use gpg_error_from_syserror ()
instead of a fixed error code.
Salam-Shalom,
Werner
--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
More information about the Gnupg-devel
mailing list