2002-02-01 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (gpgsm_status_handler): At error, terminate the connection to the server.
This commit is contained in:
parent
ebd6ac7b7d
commit
3139e2b91a
@ -1,3 +1,8 @@
|
||||
2002-02-01 Marcus Brinkmann <marcus@g10code.de>
|
||||
|
||||
* engine-gpgsm.c (gpgsm_status_handler): At error, terminate the
|
||||
connection to the server.
|
||||
|
||||
2002-01-31 Marcus Brinkmann <marcus@g10code.de>
|
||||
|
||||
* rungpg.h: Add STATUS_KEY_CREATED.
|
||||
|
@ -549,6 +549,11 @@ gpgsm_status_handler (void *opaque, int pid, int fd)
|
||||
/* FIXME Save error somewhere. */
|
||||
if (gpgsm->status.fnc)
|
||||
gpgsm->status.fnc (gpgsm->status.fnc_value, STATUS_EOF, "");
|
||||
|
||||
/* XXX: If an error occured, try our best to terminate the
|
||||
connection. */
|
||||
if (line[0] == 'E')
|
||||
assuan_write_line (gpgsm->assuan_ctx, "BYE");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user