diff options
author | Jeremy Barton <jbarton@microsoft.com> | 2018-02-28 00:44:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-28 00:44:47 +0300 |
commit | ab6b810680742a4d021792ff1f8a3cc9ee882f3d (patch) | |
tree | dd750ffe200f5c48776828f680d4b08f2cc9d52c /src/System.Security.Cryptography.X509Certificates | |
parent | 3a9429b6044e3018f0e3d0fb60c40f29ac9e562c (diff) |
Use user-scope chains when doing Find with validOnly=true
.NET Framework's version passes new IntPtr(CAPI.HCCE_CURRENT_USER), so
we need to also pass that same value (eventually) which we control by setting
useMachineContext to false (which is the default for `new X509Chain()`).
Diffstat (limited to 'src/System.Security.Cryptography.X509Certificates')
-rw-r--r-- | src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/FindPal.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/FindPal.cs b/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/FindPal.cs index 1d4141348f..1336b5e38e 100644 --- a/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/FindPal.cs +++ b/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/FindPal.cs @@ -360,7 +360,7 @@ namespace Internal.Cryptography.Pal // This needs to be kept in sync with IsCertValid in the // Unix/OpenSSL PAL version (and potentially any other PALs that come about) ChainPal chainPal = ChainPal.BuildChain( - true, + false, CertificatePal.FromHandle(pCertContext.DangerousGetHandle()), null, //extraStore null, //applicationPolicy |