latchset / kryoptic

a pkcs#11 software token written in Rust
GNU General Public License v3.0
10 stars 4 forks source link

token does not export PIN related flags #24

Closed simo5 closed 6 months ago

simo5 commented 6 months ago

These flags are defined for USER and SO PINs:

define CKF_USER_PIN_COUNT_LOW 0x00010000UL

define CKF_USER_PIN_FINAL_TRY 0x00020000UL

define CKF_USER_PIN_LOCKED 0x00040000UL

define CKF_USER_PIN_TO_BE_CHANGED 0x00080000UL

define CKF_SO_PIN_COUNT_LOW 0x00100000UL

define CKF_SO_PIN_FINAL_TRY 0x00200000UL

define CKF_SO_PIN_LOCKED 0x00400000UL

define CKF_SO_PIN_TO_BE_CHANGED 0x00800000UL

But we do not expose them when these events occur.