2005-01-26 Moritz Schulte <moritz@g10code.com>

* command-ssh.c (ssh_handler_sign_request): Confirm to agent
	protocol in case of failure.
This commit is contained in:
Moritz Schulte 2005-01-26 22:33:11 +00:00
parent e776d52ba5
commit 0cb7a855ab
2 changed files with 9 additions and 5 deletions

View File

@ -1,6 +1,10 @@
2005-01-26 Moritz Schulte <moritz@g10code.com>
* command-ssh.c (ssh_handler_sign_request): Confirm to agent
protocol in case of failure.
* command-ssh.c: New file.
* Makefile.am (gpg_agent_SOURCES): New source file: command-ssh.c.
* findkey.c (modify_description): New function.

View File

@ -1706,14 +1706,14 @@ ssh_handler_sign_request (ctrl_t ctrl, estream_t request, estream_t response)
if (! bad)
{
/* Done. */
es_write_byte (response, SSH_RESPONSE_SIGN_RESPONSE);
if (! es_ferror (response))
if (! err)
{
if (! err)
es_write_byte (response, SSH_RESPONSE_SIGN_RESPONSE);
if (! es_ferror (response))
es_write_string (response, sig, sig_n);
else
es_write_byte (response, SSH_RESPONSE_FAILURE);
}
else
es_write_byte (response, SSH_RESPONSE_FAILURE);
}
gcry_sexp_release (key);