Changeset 1720


Ignore:
Timestamp:
1/30/2010 12:38:26 AM (4 years ago)
Author:
lowjoel
Message:

Experimental fix for NotSupportedException? reported by some users.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6/Eraser.Util/AdvApi.cs

    r1675 r1720  
    354354 
    355355            handle = new SafeCryptHandle(); 
    356             if (AdvApi.NativeMethods.CryptAcquireContext(out handle, string.Empty, 
     356            if (AdvApi.NativeMethods.CryptAcquireContext(out handle, null, 
    357357                IntelDefaultProvider, AdvApi.NativeMethods.PROV_INTEL_SEC, 0)) 
    358358            { 
    359359                return; 
    360360            } 
    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)) 
    363363            { 
    364364                return; 
     
    367367            { 
    368368                //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, 
    371371                    AdvApi.NativeMethods.CRYPT_NEWKEYSET)) 
    372372                { 
Note: See TracChangeset for help on using the changeset viewer.