PKCS#11 State Management Functions

The functions listed in this section allow the FM to ask the firmware to associate user data with certain firmware structures. The firmware guarantees the cleanup of the associated buffer, when the structure in question is destroyed.

The freeing of the user data is performed by a callback to a user function. If the data is allocated using malloc(), and it contains no pointers to other allocated structures, the free function is typically the standard free() function.

The PKCS#11 State Management section includes the following functions:

>FM_SetSessionUserData

>FM_GetSessionUserData