1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* app.c (select_application): Fixed serial number extraction and

added the BMI card workaround.
(app_munge_serialno): New.
* app-openpgp.c (app_select_openpgp): Try munging serialno.
This commit is contained in:
Werner Koch 2004-09-09 07:28:47 +00:00
parent 0cb56ad4ac
commit 9d74d40da1
4 changed files with 74 additions and 3 deletions

View file

@ -1394,6 +1394,13 @@ app_select_openpgp (APP app)
log_info ("got AID: ");
log_printhex ("", buffer, buflen);
}
#if GNUPG_MAJOR_VERSION != 1
/* A valid OpenPGP card should never need this but well the test
is cheap. */
rc = app_number_serialno (app);
if (rc)
goto leave;
#endif
app->card_version = buffer[6] << 8;
app->card_version |= buffer[7];