Ejemplo n.º 1
0
 /// <summary>
 /// Loads PCKS#11 library
 /// </summary>
 /// <param name="libraryPath">Library name or path</param>
 /// <param name="useGetFunctionList">Flag indicating whether cryptoki function pointers should be acquired via C_GetFunctionList (true) or via platform native function (false)</param>
 public MockPkcs11Library(string libraryPath, bool useGetFunctionList)
     : base(libraryPath, useGetFunctionList)
 {
     try
     {
         _mockDelegates = new MockDelegates(_libraryHandle);
     }
     catch
     {
         base.Dispose();
         throw;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Loads PCKS#11 library
 /// </summary>
 /// <param name="libraryPath">Library name or path</param>
 public MockPkcs11Library(string libraryPath)
     : base(libraryPath)
 {
     try
     {
         _mockDelegates = new MockDelegates(_libraryHandle);
     }
     catch
     {
         base.Dispose();
         throw;
     }
 }