Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ITokenImpl::initialize ( CK_RV pRV,
CK_FLAGS  initFlags,
P6PKCS11PLUGFLAGS  libWideFlags,
P6BWCSTR pTokenType 
)
pure virtual

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
SuccessP6R::eOk 
FailureP6R::eFailCKR_OK was not returned in the pRV parameter.
P6R::eAlreadyInitializedCan only be called once successfully.