Net.Pkcs11Interop.LowLevelAPI80.Delegates.InitializeWithGetFunctionList C# (CSharp) Method

InitializeWithGetFunctionList() private method

Get delegates with C_GetFunctionList function from the statically linked PKCS#11 library
private InitializeWithGetFunctionList ( ) : void
return void
        private void InitializeWithGetFunctionList()
        {
            IntPtr functionList = IntPtr.Zero;

            CKR rv = (CKR)Convert.ToUInt32(NativeMethods.C_GetFunctionList(out functionList));
            if ((rv != CKR.CKR_OK) || (functionList == IntPtr.Zero))
                throw new Pkcs11Exception("C_GetFunctionList", rv);

            CK_FUNCTION_LIST ckFunctionList = (CK_FUNCTION_LIST)UnmanagedMemory.Read(functionList, typeof(CK_FUNCTION_LIST));
            Initialize(ckFunctionList);
        }

Same methods

Delegates::InitializeWithGetFunctionList ( IntPtr libraryHandle ) : void