private Delegates ( |
||
libraryHandle | Handle to the PKCS#11 library | |
useGetFunctionList | bool | Flag indicating whether cryptoki function pointers should be acquired via C_GetFunctionList (true) or via platform native function (false) |
return | System |
internal Delegates(IntPtr libraryHandle, bool useGetFunctionList)
{
if (useGetFunctionList)
{
if (libraryHandle != IntPtr.Zero)
{
InitializeWithGetFunctionList(libraryHandle);
}
else
{
InitializeWithGetFunctionList();
}
}
else
{
if (libraryHandle != IntPtr.Zero)
{
InitializeWithoutGetFunctionList(libraryHandle);
}
else
{
InitializeWithoutGetFunctionList();
}
}
}