mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-18 14:17:03 +01:00
scd: Add workaround for ECC attribute on Yubikey.
* scd/app-openpgp.c (parse_algorithm_attribute): Skip possibly bogus octet in a key attribute. -- GnuPG-bug-id: 5963 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
bbcca7357b
commit
054d14887e
@ -6226,7 +6226,8 @@ parse_algorithm_attribute (app_t app, int keyno)
|
|||||||
app->app_local->keyattr[keyno].ecc.algo = *buffer;
|
app->app_local->keyattr[keyno].ecc.algo = *buffer;
|
||||||
app->app_local->keyattr[keyno].ecc.flags = 0;
|
app->app_local->keyattr[keyno].ecc.flags = 0;
|
||||||
|
|
||||||
if (buffer[buflen-1] == 0x00 || buffer[buflen-1] == 0xff)
|
if (APP_CARD(app)->cardtype == CARDTYPE_YUBIKEY
|
||||||
|
|| buffer[buflen-1] == 0x00 || buffer[buflen-1] == 0xff)
|
||||||
{ /* Found "pubkey required"-byte for private key template. */
|
{ /* Found "pubkey required"-byte for private key template. */
|
||||||
oidlen--;
|
oidlen--;
|
||||||
if (buffer[buflen-1] == 0xff)
|
if (buffer[buflen-1] == 0xff)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user