agent,tests,w32: Fix relaying pinentry user data, fix fake-pinentry.
authorJustus Winter <justus@g10code.com>
Tue, 25 Oct 2016 15:07:08 +0000 (17:07 +0200)
committerJustus Winter <justus@g10code.com>
Tue, 25 Oct 2016 15:07:08 +0000 (17:07 +0200)
commit852b8f0b89d447536dfdf6cd4ea91615c75491ce
tree6aab32c1f5e502e6dbf56864b05af90f2e770fd5
parentf88f11a25665dca7490a09088aa24edf396e4c40
agent,tests,w32: Fix relaying pinentry user data, fix fake-pinentry.

* agent/call-pinentry.c (start_pinentry): Also send the user data
using an Assuan 'OPTION' command.
* tests/openpgp/fake-pinentry.c (get_passphrase): Fix updating
passphrase file.
(spacep): Include newline characters.
(rstrip): New function.
(main): Handle Windows line endings.  Handle the userdata option, and
restart with the new options.

Signed-off-by: Justus Winter <justus@g10code.com>
agent/call-pinentry.c
tests/openpgp/fake-pinentry.c