mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
Fixed gpg-agent SCD inquire command cancellation.
Need to send the CANCEL command back to scdaemon otherwise the next SCD command will fail.
This commit is contained in:
parent
6f86ee812f
commit
29af48840f
@ -1,3 +1,8 @@
|
|||||||
|
2011-07-09 Ben Kibbey <bjk@luxsci.net>
|
||||||
|
|
||||||
|
* call-scd.c (agent_card_scd): Send the CANCEL command back to SCD
|
||||||
|
when the SCD command is cancelled from the client.
|
||||||
|
|
||||||
2011-07-22 Werner Koch <wk@g10code.com>
|
2011-07-22 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
* command-ssh.c (ssh_receive_key): Do not init comment to an empty
|
* command-ssh.c (ssh_receive_key): Do not init comment to an empty
|
||||||
|
@ -1175,6 +1175,19 @@ agent_card_scd (ctrl_t ctrl, const char *cmdline,
|
|||||||
pass_data_thru, assuan_context,
|
pass_data_thru, assuan_context,
|
||||||
inq_needpin, &inqparm,
|
inq_needpin, &inqparm,
|
||||||
pass_status_thru, assuan_context);
|
pass_status_thru, assuan_context);
|
||||||
|
if (gpg_err_code(rc) == GPG_ERR_ASS_CANCELED)
|
||||||
|
{
|
||||||
|
rc = assuan_write_line(ctrl->scd_local->ctx, "CAN");
|
||||||
|
if (!rc) {
|
||||||
|
char *line;
|
||||||
|
size_t len;
|
||||||
|
|
||||||
|
rc = assuan_read_line(ctrl->scd_local->ctx, &line, &len);
|
||||||
|
if (!rc)
|
||||||
|
rc = gpg_error(GPG_ERR_ASS_CANCELED);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
assuan_set_flag (ctrl->scd_local->ctx, ASSUAN_CONVEY_COMMENTS, saveflag);
|
assuan_set_flag (ctrl->scd_local->ctx, ASSUAN_CONVEY_COMMENTS, saveflag);
|
||||||
if (rc)
|
if (rc)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user