mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +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:
parent
e776d52ba5
commit
0cb7a855ab
@ -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.
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user