From: Jó Á. B. <no...@gi...> - 2019-07-23 23:25:59
|
Branch: refs/heads/master Home: https://github.com/OpenSC/OpenSC Commit: a7766b3de36adf2c50fa463ddeb3548dbb1ff140 https://github.com/OpenSC/OpenSC/commit/a7766b3de36adf2c50fa463ddeb3548dbb1ff140 Author: Jó Ágila Bitsch <jo....@ex...> Date: 2019-07-24 (Wed, 24 Jul 2019) Changed paths: M src/libopensc/card-isoApplet.c Log Message: ----------- allow chaining for pkcs15-init --store-private-key EC keys when importing a private key onto a pkcs15 card, if the card does not support extended APDUs, we need to use chaining to store keys longer than 255 bytes. While for RSA keys, this check was included, it was missing for EC keys. This patch adds the SC_APDU_FLAGS_CHAINING flag to apdu.flags if data length is greater than 255 and the card caps does not include SC_CARD_CAP_APDU_EXT. Fixes #1747 |