Home GnuPG
Diffusion GnuPG b304c006a3c9

scd: Take the card look while running app->with_keygrip.

Description

scd: Take the card look while running app->with_keygrip.

* scd/app.c (app_do_with_keygrip): Lock the card.

Better safe than sorry.

We should also review the card reference counting to see whether we
better ref the returned card object already here.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jun 21 2019, 2:51 PM
Parents
rG0400a4eb1782: scd: Take the lock earlier in the function dispatchers.
Branches
Unknown
Tags
Unknown