Changeset 1720 for trunk/eraser6/Eraser.Util/AdvApi.cs
- Timestamp:
- 1/30/2010 12:38:26 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/eraser6/Eraser.Util/AdvApi.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser6/Eraser.Util/AdvApi.cs
r1675 r1720 354 354 355 355 handle = new SafeCryptHandle(); 356 if (AdvApi.NativeMethods.CryptAcquireContext(out handle, string.Empty,356 if (AdvApi.NativeMethods.CryptAcquireContext(out handle, null, 357 357 IntelDefaultProvider, AdvApi.NativeMethods.PROV_INTEL_SEC, 0)) 358 358 { 359 359 return; 360 360 } 361 else if (AdvApi.NativeMethods.CryptAcquireContext(out handle, string.Empty,362 string.Empty, AdvApi.NativeMethods.PROV_RSA_FULL, 0))361 else if (AdvApi.NativeMethods.CryptAcquireContext(out handle, null, 362 null, AdvApi.NativeMethods.PROV_RSA_FULL, 0)) 363 363 { 364 364 return; … … 367 367 { 368 368 //Default keyset doesn't exist, attempt to create a new one 369 if (AdvApi.NativeMethods.CryptAcquireContext(out handle, string.Empty,370 string.Empty, AdvApi.NativeMethods.PROV_RSA_FULL,369 if (AdvApi.NativeMethods.CryptAcquireContext(out handle, null, 370 null, AdvApi.NativeMethods.PROV_RSA_FULL, 371 371 AdvApi.NativeMethods.CRYPT_NEWKEYSET)) 372 372 {
Note: See TracChangeset
for help on using the changeset viewer.
