[Cryptech-Commits] [sw/pkcs11] branch master updated: Light the "user PIN initialized" bit, for OpenSSL's pkcs11 engine.

git at cryptech.is git at cryptech.is
Tue Jul 12 22:38:27 UTC 2016


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch master
in repository sw/pkcs11.

The following commit(s) were added to refs/heads/master by this push:
       new  f5afedf   Light the "user PIN initialized" bit, for OpenSSL's pkcs11 engine.
f5afedf is described below

commit f5afedfb91659fc209df990f13aec9904a7cce33
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Tue Jul 12 18:37:34 2016 -0400

    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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list