When sending a command with pwmd_command(), make sure than it is <=
commit31e437e47f9b8f69191dbe5ecd4f0f5af970e912
authorBen Kibbey <bjk@luxsci.net>
Sun, 12 Apr 2009 23:52:46 +0000 (12 19:52 -0400)
committerBen Kibbey <bjk@luxsci.net>
Sun, 12 Apr 2009 23:52:46 +0000 (12 19:52 -0400)
tree64a2ef3c5889d07f55fc56a5685553b6722da3e0
parentd3ed94814302f0943e7fcb088de7ed02a36b9ef8
When sending a command with pwmd_command(), make sure than it is <=
ASSUAN_LINELENGTH. If not, return GPG_ERR_LINE_TOO_LONG. This check is
done anywhere pwmd_command_ap() is used (_assuan_command() and
assuan_write_line() actually).

Call _pwmd_process() to parse any pending lines if pwm->state ==
ASYNC_DONE and in a command (ASYNC_CMD_OPEN/SAVE2).

Another fix for closing the remote connection when doing a
pwmd_open_async2() on a failure.

Check for GPG_ERR_ENOENT in _do_pwmd_save() after sending ISCACHED.

Fixed freeing the passphrase after writing to the pipe during a SAVE.

Code cleanups (libpwmd.c mainly).

Namespace cleanups.
src/libpwmd.c
src/ssh.c
src/ssh.h
src/types.h