agent: Return a better error code if no passphrase was given.
authorWerner Koch <wk@gnupg.org>
Wed, 6 Feb 2013 11:42:07 +0000 (12:42 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 6 Feb 2013 11:56:19 +0000 (12:56 +0100)
commit4483a4f0ea030046137ba04905eb5220c14a2161
treef092bc7079c528632f993c2072fe36197876e08e
parentc27315fc6466cceb862c9e67755a8e044e9b7688
agent: Return a better error code if no passphrase was given.

* agent/protect.c (hash_passphrase): Handle an empty passphrase.
--

This is mostly useful in loopback pinentry-mode.
agent/protect.c