Differences From
Artifact [b9c502e6af]:
2864 2864 free(tmpbuf_s);
2865 2865 }
2866 2866 }
2867 2867
2868 2868 /* End transaction */
2869 2869 cackey_end_transaction(slot);
2870 2870
2871 - if (respcode == 0x6982) {
2872 - CACKEY_DEBUG_PRINTF("Security status not satisified. Returning NEEDLOGIN");
2871 + if (respcode == 0x6982 || respcode == 0x6e00) {
2872 + CACKEY_DEBUG_PRINTF("Security status not satisified (respcode = 0x%04x). Returning NEEDLOGIN", (int) respcode);
2873 2873
2874 2874 cackey_mark_slot_reset(slot);
2875 2875 slot->token_flags = CKF_LOGIN_REQUIRED;
2876 2876
2877 2877 return(CACKEY_PCSC_E_NEEDLOGIN);
2878 2878 }
2879 2879