Oracle Solaris Security for Developers Guide

SCF Card and Miscellaneous Interfaces

The following functions are used to access smart cards and to get status.

SCF_Card_close(3SMARTCARD)

Releases resources, such as memory and threads, that were allocated when the card was opened. Also, releases the lock that was held by that card.

SCF_Card_getInfo(3SMARTCARD)

Obtains information about a card.

SCF_Card_freeInfo(3SMARTCARD)

Deallocates storage that has been returned from SCF_Card_getInfo(3SMARTCARD).

SCF_Card_lock(3SMARTCARD)

Obtains a lock on a specific card. This function allows an application to perform a multiple APDU transaction without interference from other smart card applications.

SCF_Card_unlock(3SMARTCARD)

Removes a lock from a specific card.

SCF_Card_exchangeAPDU(3SMARTCARD)

Sends a command APDU to a card and reads the card's response.

SCF_Card_waitForCardRemoved(3SMARTCARD)

Checks to see if a specific card has been removed. If another card or even the same card has since been reinserted, the function reports that the old card was removed.

SCF_Card_reset(3SMARTCARD)

Resets a specific card.

SCF_strerror(3SMARTCARD)

Gets a string that describes a status code.