Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CK_DECLARE_FUNCTION ( CK_RV  ,
P6R_CreateToken   
)

P6R_CreateToken is used to dynamically create a new token in a slot that was created by a call to the P6R_CreateSlot() extension function.

Tokens can be created either by use of a configuration file or dynamically via this extension function.

To dynamically create a new slot and token the following sequence of calls must be successfully made: P6R_CreateSlot(); P6R_CreateToken(); C_InitToken();

Return value: CKR_CRYPTOKI_NOT_INITIALIZED, CKR_ARGUMENTS_BAD, CKR_GENERAL_ERROR, CKR_FUNCTION_FAILED, CKR_OK