Home GnuPG
Diffusion GnuPG 99d4dfe83661

scd: Fix RESET command handling (more).
99d4dfe83661Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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 <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Feb 17 2017, 3:50 AM
Parents
rG7006352da773: dirmngr,w32: Load all system provided certificates.
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rG99d4dfe83661: scd: Fix RESET command handling (more). (authored by NIIBE Yutaka <gniibe@fsij.org>).Feb 17 2017, 3:50 AM