mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
scd: Detect external interference when PCSC_SHARED.
* scd/app-common.h (check_aid): New method. * scd/app-openpgp.c (do_check_aid): New. * scd/app-piv.c (do_check_aid): New. * scd/app.c (check_external_interference): New. (maybe_switch_app): Check interference to determine switching is needed. -- GnuPG-bug-id: 5484 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
5f78ae696c
commit
044e5a3c38
4 changed files with 72 additions and 2 deletions
|
@ -194,6 +194,8 @@ struct app_ctx_s {
|
|||
void *pincb_arg);
|
||||
gpg_error_t (*with_keygrip) (app_t app, ctrl_t ctrl, int action,
|
||||
const char *keygrip_str, int capability);
|
||||
gpg_error_t (*check_aid) (app_t app, ctrl_t ctrl,
|
||||
const unsigned char *aid, size_t aidlen);
|
||||
} fnc;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue