1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

scd: Add the "undefined" stub application.

* scd/app.c (select_application): Implement the "undefined"
application.
This commit is contained in:
Werner Koch 2011-12-14 17:00:50 +01:00
parent 45cf9de341
commit dcd64131c6
2 changed files with 21 additions and 0 deletions

View file

@ -387,6 +387,14 @@ select_application (ctrl_t ctrl, int slot, const char *name, app_t *r_app)
if (err && is_app_allowed ("geldkarte")
&& (!name || !strcmp (name, "geldkarte")))
err = app_select_geldkarte (app);
if (err && is_app_allowed ("undefined")
&& (name && !strcmp (name, "undefined")))
{
/* We switch to the "undefined" application only if explicitly
requested. */
app->apptype = "UNDEFINED";
err = 0;
}
if (err && name)
err = gpg_error (GPG_ERR_NOT_SUPPORTED);
@ -422,6 +430,8 @@ get_supported_applications (void)
"p15",
"dinsig",
"geldkarte",
/* Note: "undefined" is not listed here because it needs special
treatment by the client. */
NULL
};
int idx;