2007-07-16 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (status_handler): Do not send BYE here.
This commit is contained in:
parent
b3434696b3
commit
174bf90842
@ -1,5 +1,7 @@
|
||||
2007-07-16 Marcus Brinkmann <marcus@g10code.de>
|
||||
|
||||
* engine-gpgsm.c (status_handler): Do not send BYE here.
|
||||
|
||||
* w32-io.c (struct reader_context_s, struct writer_context_s): New
|
||||
members REFCOUNT.
|
||||
(create_reader, create_writer): Initialize C->refcount to 1.
|
||||
@ -11,7 +13,7 @@
|
||||
* w32-io.c (_gpgme_io_dup): Likewise.
|
||||
* w32-glib-io.c (_gpgme_io_dup): Likewise.
|
||||
* engine-gpgsm.c (start): Reverting to version 2007-07-10.
|
||||
|
||||
|
||||
2007-07-13 Marcus Brinkmann <marcus@g10code.de>
|
||||
|
||||
* data-user.c (user_read, user_write, user_seek): Set errno and
|
||||
|
@ -807,8 +807,10 @@ status_handler (void *opaque, int fd)
|
||||
assuan_err = assuan_read_line (gpgsm->assuan_ctx, &line, &linelen);
|
||||
if (assuan_err)
|
||||
{
|
||||
#if 0
|
||||
/* Try our best to terminate the connection friendly. */
|
||||
/* assuan_write_line (gpgsm->assuan_ctx, "BYE"); */
|
||||
assuan_write_line (gpgsm->assuan_ctx, "BYE");
|
||||
#endif
|
||||
err = map_assuan_error (assuan_err);
|
||||
DEBUG3 ("fd %d: error from assuan (%d) getting status line : %s \n",
|
||||
fd, assuan_err, gpg_strerror (err));
|
||||
@ -823,8 +825,10 @@ status_handler (void *opaque, int fd)
|
||||
err = gpg_error (GPG_ERR_GENERAL);
|
||||
DEBUG2 ("fd %d: ERR line - mapped to: %s\n",
|
||||
fd, err? gpg_strerror (err):"ok");
|
||||
#if 0
|
||||
/* Try our best to terminate the connection friendly. */
|
||||
assuan_write_line (gpgsm->assuan_ctx, "BYE");
|
||||
#endif
|
||||
}
|
||||
else if (linelen >= 2
|
||||
&& line[0] == 'O' && line[1] == 'K'
|
||||
|
Loading…
Reference in New Issue
Block a user