diff options
author | Rob Austein <sra@hactrn.net> | 2016-07-12 18:37:34 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-07-12 18:37:34 -0400 |
commit | f5afedfb91659fc209df990f13aec9904a7cce33 (patch) | |
tree | 4dcc0b9418ff13f5b4c68853ae087752b9c1b569 | |
parent | e6277fc6d33cb6087594da009ebfd124c0c5b555 (diff) |
Light the "user PIN initialized" bit, for OpenSSL's pkcs11 engine.
Like several other recent commits, this just nails up some value which
really should be coming from the HSM via some as-yet-unwritten RPC
call, but that can wait until after the upcoming workshop.
-rw-r--r-- | pkcs11.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2988,7 +2988,7 @@ CK_RV C_GetTokenInfo(CK_SLOT_ID slotID, psnprintf(pInfo->serialNumber, sizeof(pInfo->serialNumber), "007"); - pInfo->flags = CKF_RNG | CKF_LOGIN_REQUIRED; + pInfo->flags = CKF_RNG | CKF_LOGIN_REQUIRED | CKF_USER_PIN_INITIALIZED; #warning Have not yet sorted out token flags #if 0 |