From f5afedfb91659fc209df990f13aec9904a7cce33 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Tue, 12 Jul 2016 18:37:34 -0400 Subject: 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. --- pkcs11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3