From: MkfsSion <no...@gi...> - 2025-08-28 20:59:25
|
Branch: refs/heads/master Home: https://github.com/OpenSC/OpenSC Commit: 5f39aa9ceabfc3d2b6b7698cae4074393fc7de09 https://github.com/OpenSC/OpenSC/commit/5f39aa9ceabfc3d2b6b7698cae4074393fc7de09 Author: MkfsSion <mkf...@mk...> Date: 2025-08-28 (Thu, 28 Aug 2025) Changed paths: M src/libopensc/card-openpgp.c Log Message: ----------- openpgp: Fix retry counter for card does not support query PIN status by VERIFY command According to OpenPGP spec, DO C4 is a simple DO which means response of GET DATA is not TLV encoded data. So retry counter bytes starts from byte 5 (count from 1) of buffer. Since 81 <= PIN reference <= 83, access to error counter would start from byte 6 of buffer and get wrong data. To unsubscribe from these emails, change your notification settings at https://github.com/OpenSC/OpenSC/settings/notifications |