Diff

Differences From Artifact [b3c16cba8c]:

To Artifact [b9686fc1be]:


   553    553   			if ((tokenInfo.flags & CKF_SO_PIN_TO_BE_CHANGED) == CKF_SO_PIN_TO_BE_CHANGED) {
   554    554   				printf("CKF_SO_PIN_TO_BE_CHANGED ");
   555    555   			}
   556    556   			printf("\n");
   557    557   		}
   558    558   	}
   559    559   
   560         -	chk_rv = C_OpenSession(slots[0], CKF_SERIAL_SESSION, NULL, NULL, &hSession);
          560  +	chk_rv = C_OpenSession(slots[1], CKF_SERIAL_SESSION, NULL, NULL, &hSession);
   561    561   	if (chk_rv == CKR_OK) {
   562         -		chk_rv = C_GetTokenInfo(slots[0], &tokenInfo);
          562  +		chk_rv = C_GetTokenInfo(slots[1], &tokenInfo);
   563    563   		if (chk_rv != CKR_OK) {
   564    564   			return(1);
   565    565   		}
   566    566   
   567    567   		if ((tokenInfo.flags & CKF_LOGIN_REQUIRED) == CKF_LOGIN_REQUIRED && (tokenInfo.flags & CKF_PROTECTED_AUTHENTICATION_PATH) == 0) {
   568    568   			fgets_ret = NULL;
   569    569