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

* configure.ac: Changed tests for libusb to also suuport the

stable version 0.1.x.

* scdaemon.texi (Card applications): New section.

* scdaemon.c (main): New option --disable-application.
* app.c (is_app_allowed): New.
(select_application): Use it to check for disabled applications.

* ccid-driver.h (CCID_DRIVER_ERR_ABORTED): New.
* ccid-driver.c (ccid_open_reader): Support the stable 0.1 version
of libusb.
(ccid_get_atr): Handle short messages.

* apdu.c (my_rapdu_get_status): Implemented.
This commit is contained in:
Werner Koch 2004-08-05 09:24:36 +00:00
parent 587222f48d
commit 818e9bad58
16 changed files with 282 additions and 31 deletions

View file

@ -80,6 +80,7 @@ enum cmd_and_opt_values
oDisableOpenSC,
oAllowAdmin,
oDenyAdmin,
oDisableApplication,
aTest };
@ -124,6 +125,7 @@ static ARGPARSE_OPTS opts[] = {
/* end --disable-opensc */},
{ oAllowAdmin, "allow-admin", 0, N_("allow the use of admin card commands")},
{ oDenyAdmin, "deny-admin", 0, "@" },
{ oDisableApplication, "disable-application", 2, "@"},
{0}
};
@ -493,6 +495,10 @@ main (int argc, char **argv )
case oAllowAdmin: opt.allow_admin = 1; break;
case oDenyAdmin: opt.allow_admin = 0; break;
case oDisableApplication:
add_to_strlist (&opt.disabled_applications, pargs.r.ret_str);
break;
default : pargs.err = configfp? 1:2; break;
}
}