aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-07-12 18:37:34 -0400
committerRob Austein <sra@hactrn.net>2016-07-12 18:37:34 -0400
commitf5afedfb91659fc209df990f13aec9904a7cce33 (patch)
tree4dcc0b9418ff13f5b4c68853ae087752b9c1b569
parente6277fc6d33cb6087594da009ebfd124c0c5b555 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkcs11.c b/pkcs11.c
index 3623dcb..b344648 100644
--- a/pkcs11.c
+++ b/pkcs11.c
@@ -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