mirror of
git://git.gnupg.org/gnupg.git
synced 2024-10-31 20:08:43 +01:00
scd:p15: Support for GeNUA cards.
* scd/app-p15.c (read_p15_info): Disable extended mode for Genua cards.
This commit is contained in:
parent
29fd805818
commit
44ec383cde
@ -456,7 +456,7 @@ struct app_local_s
|
|||||||
/* The vendor's product. */
|
/* The vendor's product. */
|
||||||
card_product_t card_product;
|
card_product_t card_product;
|
||||||
|
|
||||||
/* Flag indicating that extedned_mode is not supported. */
|
/* Flag indicating that extended_mode is not supported. */
|
||||||
unsigned int no_extended_mode : 1;
|
unsigned int no_extended_mode : 1;
|
||||||
|
|
||||||
/* Flag indicating whether we may use direct path selection. */
|
/* Flag indicating whether we may use direct path selection. */
|
||||||
@ -3570,6 +3570,15 @@ read_p15_info (app_t app)
|
|||||||
|
|
||||||
release_lists (app);
|
release_lists (app);
|
||||||
|
|
||||||
|
if (IS_CARDOS_5 (app)
|
||||||
|
&& app->app_local->manufacturer_id
|
||||||
|
&& !ascii_strcasecmp (app->app_local->manufacturer_id, "GeNUA mbH")
|
||||||
|
&& !app->app_local->no_extended_mode)
|
||||||
|
{
|
||||||
|
log_info ("p15: disabling extended mode based on TokenInfo\n");
|
||||||
|
app->app_local->no_extended_mode = 1;
|
||||||
|
}
|
||||||
|
|
||||||
/* Read the ODF so that we know the location of all directory
|
/* Read the ODF so that we know the location of all directory
|
||||||
files. */
|
files. */
|
||||||
/* Fixme: We might need to get a non-standard ODF FID from TokenInfo. */
|
/* Fixme: We might need to get a non-standard ODF FID from TokenInfo. */
|
||||||
|
Loading…
Reference in New Issue
Block a user