mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
scd: Support for GeNUA cards.
* scd/app-p15.c (read_p15_info): Disable extended mode for Genua cards.
This commit is contained in:
parent
198fad9fc1
commit
0dcc249852
@ -456,7 +456,7 @@ struct app_local_s
|
||||
/* The vendor's 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;
|
||||
|
||||
/* Flag indicating whether we may use direct path selection. */
|
||||
@ -3574,6 +3574,15 @@ read_p15_info (app_t 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
|
||||
files. */
|
||||
/* Fixme: We might need to get a non-standard ODF FID from TokenInfo. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user