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:
Peter Marschall 2018-12-22 21:25:38 +01:00 committed by Frank Morgner
parent 54dd9f4878
commit bc17e23bd6
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}
/* bit 0x80 in byte 3 of TL 0x73 means "Command chaining" */
if ((ptr[2] & 0x80) &&
(priv->bcd_version >= OPENPGP_CARD_3_0)) {
if (ptr[2] & 0x80) {
priv->ext_caps |= EXT_CAP_CHAINING;
}
}