aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-common.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2021-07-06 05:52:29 +0000
committerNIIBE Yutaka <[email protected]>2021-07-06 05:52:29 +0000
commit044e5a3c3801fde7fa3b26986825377016e73103 (patch)
tree45e26e9ad43d1a12a5fce7942ebc981a1ccb4638 /scd/app-common.h
parentartwork: Explain the license for the logo (diff)
downloadgnupg-044e5a3c3801fde7fa3b26986825377016e73103.tar.gz
gnupg-044e5a3c3801fde7fa3b26986825377016e73103.zip
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 <[email protected]>
Diffstat (limited to 'scd/app-common.h')
-rw-r--r--scd/app-common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scd/app-common.h b/scd/app-common.h
index dffe1200d..d6e6f4c0a 100644
--- a/scd/app-common.h
+++ b/scd/app-common.h
@@ -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;
};