Diff

Differences From Artifact [a3fe09560a]:

To Artifact [5989078539]:


   271    271   			while (fgets_ret == NULL) {
   272    272   				printf("** ENTER PIN: ");
   273    273   				fflush(stdout);
   274    274   
   275    275   				fgets_ret = fgets((char *) user_pin, sizeof(user_pin), stdin);
   276    276   			}
   277    277   
   278         -			if (strlen(user_pin) >= 1) {
          278  +			if (strlen((char *) user_pin) >= 1) {
   279    279   				while (user_pin[strlen((char *) user_pin) - 1] < ' ') {
   280    280   					user_pin[strlen((char *) user_pin) - 1] = '\0';
   281    281   				}
   282    282   			}
   283    283   
   284    284   			chk_rv = C_Login(hSession, CKU_USER, user_pin, strlen((char *) user_pin));
   285    285   		} else {