diff options
author | NIIBE Yutaka <[email protected]> | 2017-02-17 02:50:40 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2017-02-17 02:50:40 +0000 |
commit | 99d4dfe83661d05ef3a20ed04e6cec5647536738 (patch) | |
tree | be9c8926be1a560ea3878ddf9b7e93eea44fc738 /agent/command-ssh.c | |
parent | dirmngr,w32: Load all system provided certificates. (diff) | |
download | gnupg-99d4dfe83661d05ef3a20ed04e6cec5647536738.tar.gz gnupg-99d4dfe83661d05ef3a20ed04e6cec5647536738.zip |
scd: Fix RESET command handling (more).
* scd/app-common.h (struct app_ctx_s): Add reset_requested.
* scd/app.c (app_reset): Locking APP, set reset_requested.
(deallocate_app): Release the lock.
(release_application): Add LOCKED_ALREADY argument.
(scd_update_reader_status_file): Hold the lock when accessing APP.
When reset_requested is set, close the reader and deallocate APP.
* scd/command.c (open_card_with_request, cmd_restart): Follow the
change of release_application.
(send_client_notifications): Here it calls release_application holding
the lock.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions