agent: Improve error reporting from Pinentry.
authorWerner Koch <wk@gnupg.org>
Wed, 11 Mar 2015 15:28:32 +0000 (16:28 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 11 Mar 2015 15:28:32 +0000 (16:28 +0100)
commitefde50f92af241d8357db83e280a6ece62f6397f
tree5d9f9131c3b2bdce779e947e0237df4d46ad0ba7
parent7b5b52f3268b093eebbac3f199fb69bf246d9cd1
agent: Improve error reporting from Pinentry.

* agent/call-pinentry.c (unlock_pinentry): Add error logging.  Map
error source of uncommon errors to Pinentry.
--

With this change it is possible to detect whether an error like
GPG_ERR_ASS_INV_RESPONSE has its origin in a call to Pinentry or comes
from another part of gpg-agent.

Signed-off-by: Werner Koch <wk@gnupg.org>
agent/call-pinentry.c