1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-20 01:02:44 +02:00

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> 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. * command-ssh.c: New file.
* Makefile.am (gpg_agent_SOURCES): New source file: command-ssh.c. * Makefile.am (gpg_agent_SOURCES): New source file: command-ssh.c.
* findkey.c (modify_description): New function. * findkey.c (modify_description): New function.

View File

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