OpenPGP: fix spec interpretation error in hist_byte parsing
Command chaining is available with OpenPGP card spec 1.1+, not only with 3.0+
This commit is contained in:
parent
54dd9f4878
commit
bc17e23bd6
|
@ -633,8 +633,7 @@ pgp_parse_hist_bytes(sc_card_t *card, u8 *ctlv, size_t ctlv_len)
|
||||||
priv->ext_caps |= EXT_CAP_APDU_EXT;
|
priv->ext_caps |= EXT_CAP_APDU_EXT;
|
||||||
}
|
}
|
||||||
/* bit 0x80 in byte 3 of TL 0x73 means "Command chaining" */
|
/* bit 0x80 in byte 3 of TL 0x73 means "Command chaining" */
|
||||||
if ((ptr[2] & 0x80) &&
|
if (ptr[2] & 0x80) {
|
||||||
(priv->bcd_version >= OPENPGP_CARD_3_0)) {
|
|
||||||
priv->ext_caps |= EXT_CAP_CHAINING;
|
priv->ext_caps |= EXT_CAP_CHAINING;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue