Diff

Differences From Artifact [47338c5b52]:

To Artifact [1ccfa3a69d]:


   225    225   
   226    226   	slots = malloc(sizeof(*slots) * numSlots);
   227    227   
   228    228   	chk_rv = C_GetSlotList(FALSE, slots, &numSlots);
   229    229   	if (chk_rv != CKR_OK) {
   230    230   		return(1);
   231    231   	}
          232  +
          233  +	currSlot = 0;
          234  +	printf("Please insert a card now.\n");
          235  +	chk_rv = C_WaitForSlotEvent(0, &currSlot, NULL);
          236  +	if (chk_rv != CKR_OK) {
          237  +		printf("Failed to wait for slot event.\n");
          238  +	}
   232    239   
   233    240   	for (currSlot = 0; currSlot < numSlots; currSlot++) {
   234    241   		printf("  Slot %lu:\n", currSlot);
   235    242   
   236    243   		chk_rv = C_GetSlotInfo(slots[currSlot], &slotInfo);
   237    244   		if (chk_rv != CKR_OK) {
   238    245   			return(1);