Home GnuPG

Return better error codes.
726c00514be4Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Return better error codes.

* assuan/assuan.h (ASSUAN_Too_Short): New
(ASSUAN_ENOENT, ASSUAN_ENOTTY): New.
* pinentry/pinentry-curses.c: Include assuan.h.
(dialog_create, dialog_run): Set specific error codes.
* pinentry/pinentry.h (struct pinentry): Add field specific_err.
* pinentry/pinentry.c (cmd_getpin): Return specific_err.
(cmd_confirm, cmd_message): Ditto.

Details

Provenance
wernerAuthored on May 11 2015, 1:10 PM
Parents
rPd7f2081fdd60: curses: Reset tty state on failed dialog creation.
Branches
Unknown
Tags
Unknown