aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2011-12-15 20:45:35 +0000
committerWerner Koch <[email protected]>2011-12-15 20:45:35 +0000
commit27089564b6453deaf7b4ffe7cc5f5f290b6d892b (patch)
tree1223c199ecc3c391d29ddf87e108396376e81695
parentscd: Add option --dump-atr to command APDU. (diff)
downloadgnupg-27089564b6453deaf7b4ffe7cc5f5f290b6d892b.tar.gz
gnupg-27089564b6453deaf7b4ffe7cc5f5f290b6d892b.zip
scd: Prefer application Geldkarte over DINSIG.
* scd/app.c (select_application): Reorder application tests. -- Although the DINSIG application is available on most German cards, it is in reality not used. Thus showing the Geldkarte application is more desirable for a good user experience.
-rw-r--r--scd/app.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/scd/app.c b/scd/app.c
index 31e56fb3f..76dc8b4de 100644
--- a/scd/app.c
+++ b/scd/app.c
@@ -397,11 +397,11 @@ select_application (ctrl_t ctrl, int slot, const char *name, app_t *r_app)
err = app_select_nks (app);
if (err && is_app_allowed ("p15") && (!name || !strcmp (name, "p15")))
err = app_select_p15 (app);
- if (err && is_app_allowed ("dinsig") && (!name || !strcmp (name, "dinsig")))
- err = app_select_dinsig (app);
if (err && is_app_allowed ("geldkarte")
&& (!name || !strcmp (name, "geldkarte")))
err = app_select_geldkarte (app);
+ if (err && is_app_allowed ("dinsig") && (!name || !strcmp (name, "dinsig")))
+ err = app_select_dinsig (app);
if (err && name)
err = gpg_error (GPG_ERR_NOT_SUPPORTED);
@@ -435,8 +435,8 @@ get_supported_applications (void)
"openpgp",
"nks",
"p15",
- "dinsig",
"geldkarte",
+ "dinsig",
/* Note: "undefined" is not listed here because it needs special
treatment by the client. */
NULL