Ignore:
Timestamp:
2/3/2010 3:37:13 AM (2 years ago)
Author:
lowjoel
Message:

Forward ported changes from trunk to r1743

Location:
branches/eraser6/CodeReview
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/CodeReview

  • branches/eraser6/CodeReview/Eraser.Util/Security.cs

    r1687 r1745  
    117117 
    118118            handle = new SafeCryptHandle(); 
    119             if (NativeMethods.CryptAcquireContext(out handle, string.Empty, 
     119            if (NativeMethods.CryptAcquireContext(out handle, null, 
    120120                IntelDefaultProvider, NativeMethods.PROV_INTEL_SEC, 0)) 
    121121            { 
    122122                return; 
    123123            } 
    124             else if (NativeMethods.CryptAcquireContext(out handle, string.Empty, 
    125                 string.Empty, NativeMethods.PROV_RSA_FULL, 0)) 
     124            else if (NativeMethods.CryptAcquireContext(out handle, null, 
     125                null, NativeMethods.PROV_RSA_FULL, 0)) 
    126126            { 
    127127                return; 
     
    130130            { 
    131131                //Default keyset doesn't exist, attempt to create a new one 
    132                 if (NativeMethods.CryptAcquireContext(out handle, string.Empty, string.Empty, 
     132                if (NativeMethods.CryptAcquireContext(out handle, null, null, 
    133133                    NativeMethods.PROV_RSA_FULL, NativeMethods.CRYPT_NEWKEYSET)) 
    134134                { 
Note: See TracChangeset for help on using the changeset viewer.