OpenSC API Reference sc_unlock 3 opensc sc_unlock Unlock a card Synopsis #include <opensc.h> int sc_unlock(struct sc_card *card); Description This function unlocks card. That is, the lock count is decreased, and the card unlocked if it reaches zero. Return value Returns 0 if successful, or a negative value in case of error.