Check-in [06eb7a2600]
Overview
Comment:Made test driver aware of PKCS#11 protected authentication path flag
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | protected-auth-path
Files: files | file ages | folders
SHA1:06eb7a2600a2ae8a14c420a3b2b14c1a5a5c5675
User & Date: rkeene on 2013-08-14 03:01:49
Other Links: manifest | tags
Context
2013-08-14
03:48
Added support for supplying a command to provide a PIN via standard output check-in: b6a0e30bff user: rkeene tags: protected-auth-path
03:01
Made test driver aware of PKCS#11 protected authentication path flag check-in: 06eb7a2600 user: rkeene tags: protected-auth-path
02:26
Create new branch named "protected-auth-path" check-in: 93bebaff52 user: rkeene tags: protected-auth-path
Changes

Modified test.c from [86bd0fe2e2] to [47338c5b52].

   331    331   	chk_rv = C_OpenSession(slots[0], CKF_SERIAL_SESSION, NULL, NULL, &hSession);
   332    332   	if (chk_rv == CKR_OK) {
   333    333   		chk_rv = C_GetTokenInfo(slots[0], &tokenInfo);
   334    334   		if (chk_rv != CKR_OK) {
   335    335   			return(1);
   336    336   		}
   337    337   
   338         -		if ((tokenInfo.flags & CKF_LOGIN_REQUIRED) == CKF_LOGIN_REQUIRED) {
          338  +		if ((tokenInfo.flags & CKF_LOGIN_REQUIRED) == CKF_LOGIN_REQUIRED && (tokenInfo.flags & CKF_PROTECTED_AUTHENTICATION_PATH) == 0) {
   339    339   			fgets_ret = NULL;
   340    340   
   341    341   			while (fgets_ret == NULL) {
   342    342   				printf("** ENTER PIN: ");
   343    343   				fflush(stdout);
   344    344   
   345    345   				fgets_ret = fgets((char *) user_pin, sizeof(user_pin), stdin);