Home GnuPG
Diffusion GnuPG 216945a80e7b

scd: Fix access to list of cards (1/3).

Description

scd: Fix access to list of cards (1/3).

* scd/app.c (card_list_lock): Use MRSW lock.
(lock_r_card_list, unlock_r_card_list): New.
(lock_w_card_list, unlock_w_card_list): New.
(app_dump_state, app_send_devinfo): Use the MRSW lock.
(select_application, app_switch_current_card): Likewise.
(scd_update_reader_status_file): Likewise.
(initialize_module_command, send_card_and_app_list): Likewise.
(app_do_with_keygrip, app_wait): Likewise.
  • GnuPG-bug-id: T5524
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jul 19 2021, 4:57 AM
Parents
rG5a93acbc7a51: po: Fix typo in German translation.
Branches
Unknown
Tags
Unknown
Tasks
T5524: scd: serialize access of ctrl->card_ctx