Invoked when the PKCS 11 C_Initialize( CK_VOID_PTR pInitArgs ) function is called.
All locking is done by the enclosing library.
- Parameters
-
pRV | [ out ] PKCS 11 return value to be returned to the caller. |
initFlags | [ in ] CK_C_INITIALIZE_ARGS.flags parameter |
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::eFail | CKR_OK was not returned in the pRV parameter. |
P6R::eAlreadyInitialized | Can only be called once successfully. |