Invoked when the PKCS 11 C_Initialize( CK_VOID_PTR pInitArgs ) function is called.
All locking is done by the enclosing library.
- Parameters
-
libWideFlags | [ in ] indicates behavior specified from the p6pkcs11.conf file that effects all tokens |
pTokenType | [ out ] String name of they type of token that will be matched in p6pkcs11.conf file. Reserved values are any strings starting with "P6R-" (e.g., "P6R-KMIP", P6R-Keystore"). Perferred names start with the vendor name. pTokenType.pString is NULL on input, this function assigns a pointer to a constant string. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eNoMemory | Insuffficient memory to properly initialize the component |
P6R::eAlreadyInitialized | Can only be called once successfully. |