Oracle Solaris Security for Developers Guide

SCF Terminal Interfaces

The following functions are used to access SCF terminals.

SCF_Terminal_close(3SMARTCARD)

Releases the resources that were allocated when the terminal was opened. The function also closes any cards that were associated with the terminal.

SCF_Terminal_getInfo(3SMARTCARD)

Obtains information about a terminal.

SCF_Terminal_freeInfo(3SMARTCARD)

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

SCF_Terminal_waitForCardPresent(3SMARTCARD)

Blocks and waits until a card is present in the specified terminal.

SCF_Terminal_waitForCardAbsent(3SMARTCARD)

Blocks and waits until the card in the specified terminal is removed.

SCF_Terminal_addEventListener(3SMARTCARD)

Allows a program to receive callback notifications when events occur on a terminal. The concept is similar to a signal handler. When an event occurs, a service thread executes the provided callback function.

SCF_Terminal_updateEventListener(3SMARTCARD)

Updates the specified event listener that is associated with this terminal.

SCF_Terminal_removeEventListener(3SMARTCARD)

Removes the specified event listener from the listener list that is associated with this terminal.

SCF_Terminal_getCard(3SMARTCARD)

Establishes a context with a specific smart card in a terminal. Card objects can be used to send APDUs to the card with SCF_Card_exchangeAPDU(3SMARTCARD).