mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
scd: Small clean up for card access.
* scd/app.c (app_get_challenge): Remove the check to ref_count. * scd/command.c (send_client_notifications): Update comments. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
50ad29f9a7
commit
5c8124b8b9
2 changed files with 11 additions and 10 deletions
|
@ -2851,8 +2851,16 @@ popup_prompt (void *opaque, int on)
|
|||
}
|
||||
|
||||
|
||||
/* Helper to send the clients a status change notification. Note that
|
||||
* this function assumes that APP is already locked. */
|
||||
/*
|
||||
* Helper to send the clients a status change notification.
|
||||
*
|
||||
* When it's removal of card, this function also clean up all
|
||||
* references by ctrl->card_ctx of all sessions.
|
||||
*
|
||||
* Note that this function assumes that all accesses to cards and
|
||||
* applications are locked. By the mrsw-lock, it is guaranteed that
|
||||
* no card/app is accessed, when this function is called..
|
||||
*/
|
||||
void
|
||||
send_client_notifications (card_t card, int removal)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue