We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26aed94 commit 4d8b2c1Copy full SHA for 4d8b2c1
src/libopensc/card-openpgp.c
@@ -710,6 +710,17 @@ pgp_get_card_features(sc_card_t *card)
710
pgp_parse_hist_bytes(card, hist_bytes+2, hist_bytes_len-2);
711
}
712
break;
713
+ default:
714
+ /* Something else is non-standard according to
715
+ * ISO7816-4 section 8 - Historical bytes,
716
+ * but used by Yubico, which should have all
717
+ * the needed capabilities*/
718
+ if (hist_bytes_len >= 7 &&
719
+ memcmp(hist_bytes, "Yubikey", 7) == 0) {
720
+ card->caps |= SC_CARD_CAP_APDU_EXT;
721
+ priv->ext_caps |= EXT_CAP_APDU_EXT
722
+ | EXT_CAP_CHAINING;
723
+ }
724
725
726
0 commit comments