Pinentry linking to libassuan?
Neal H. Walfield
neal at walfield.org
Tue Jun 16 12:13:12 CEST 2015
Hi,
At Mon, 15 Jun 2015 11:19:09 +0200,
Werner Koch wrote:
>
> 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.
Thanks for the feedback. I've done this and pushed this patched.
:) Neal
More information about the Gnupg-devel
mailing list