diff options
author | Werner Koch <[email protected]> | 2019-06-21 09:41:58 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2019-06-21 09:44:25 +0000 |
commit | 1b78e4951ed7a66ec71ca036e7680148a63143be (patch) | |
tree | be14490609c33727b7fd9c12eb282018374984fb /scd/app-common.h | |
parent | scd: Track the currently selected app. (diff) | |
download | gnupg-1b78e4951ed7a66ec71ca036e7680148a63143be.tar.gz gnupg-1b78e4951ed7a66ec71ca036e7680148a63143be.zip |
scd: Add code to check whether app switching is possible.
* scd/app.c (check_conflict): Fold into ...
(check_application_conflict): this and adjust callers. Return a
different error code if it is possible to switch apps.
--
Right now this change does nothing visible.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'scd/app-common.h')
-rw-r--r-- | scd/app-common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/app-common.h b/scd/app-common.h index 3925eacf7..a13623fde 100644 --- a/scd/app-common.h +++ b/scd/app-common.h @@ -228,7 +228,7 @@ char *app_get_serialno (app_t app); void app_dump_state (void); void application_notify_card_reset (int slot); -gpg_error_t check_application_conflict (const char *name, card_t card); +gpg_error_t check_application_conflict (card_t card, const char *name); gpg_error_t card_reset (card_t card, ctrl_t ctrl, int send_reset); gpg_error_t select_application (ctrl_t ctrl, const char *name, card_t *r_app, int scan, const unsigned char *serialno_bin, |