151 references to OpenFlags
Aspire.Dashboard (1)
ResourceService\DashboardClient.cs (1)
198store.Open(OpenFlags.ReadOnly);
Binding.UDS.IntegrationTests (1)
ServiceHelper.cs (1)
55store.Open(OpenFlags.ReadOnly);
dotnet-dev-certs (8)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
92store.Open(OpenFlags.ReadOnly); 836store.Open(OpenFlags.ReadWrite);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
161store.Open(OpenFlags.ReadWrite); 190store.Open(OpenFlags.ReadWrite); 364store.Open(OpenFlags.ReadWrite);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
66store.Open(OpenFlags.ReadWrite); 77store.Open(OpenFlags.ReadWrite); 106store.Open(OpenFlags.ReadWrite);
dotnet-svcutil-lib (4)
CmdCredentialsProvider.cs (2)
80certificateStore.Open(OpenFlags.OpenExistingOnly | OpenFlags.ReadOnly);
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\X509SecurityTokenProvider.cs (1)
38store.Open(OpenFlags.ReadOnly);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (1)
911store.Open(OpenFlags.ReadOnly);
IIS.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\HttpsTests.cs (1)
110store.Open(OpenFlags.ReadWrite);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
25store.Open(OpenFlags.ReadWrite); 77store.Open(OpenFlags.ReadWrite);
IIS.LongTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
25store.Open(OpenFlags.ReadWrite); 77store.Open(OpenFlags.ReadWrite);
IIS.NewHandler.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
25store.Open(OpenFlags.ReadWrite); 77store.Open(OpenFlags.ReadWrite);
IIS.NewShim.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
25store.Open(OpenFlags.ReadWrite); 77store.Open(OpenFlags.ReadWrite);
IIS.ShadowCopy.Tests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
25store.Open(OpenFlags.ReadWrite); 77store.Open(OpenFlags.ReadWrite);
IISExpress.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\HttpsTests.cs (1)
110store.Open(OpenFlags.ReadWrite);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
25store.Open(OpenFlags.ReadWrite); 77store.Open(OpenFlags.ReadWrite);
Infrastructure.Common (4)
CertificateManager.cs (4)
49store.Open(OpenFlags.ReadWrite); 99store.Open(OpenFlags.ReadOnly); 110store.Open(OpenFlags.ReadWrite); 182store.Open(OpenFlags.ReadOnly);
InMemory.FunctionalTests (3)
HttpsConnectionMiddlewareTests.cs (1)
809store.Open(OpenFlags.ReadWrite);
src\Servers\Kestrel\shared\test\CertHelper.cs (2)
71store.Open(OpenFlags.ReadWrite); 88store.Open(OpenFlags.ReadWrite);
Microsoft.AspNetCore.DataProtection (2)
XmlEncryption\CertificateResolver.cs (2)
40store.Open(OpenFlags.ReadOnly | OpenFlags.OpenExistingOnly);
Microsoft.AspNetCore.DataProtection.Extensions.Tests (6)
DataProtectionProviderTests.cs (5)
126store.Open(OpenFlags.ReadWrite); 134certificateStore.Open(OpenFlags.ReadWrite); 175store.Open(OpenFlags.ReadWrite); 186certificateStore.Open(OpenFlags.ReadWrite); 272store.Open(OpenFlags.ReadOnly);
X509StoreIsAvailableAttribute.cs (1)
27store.Open(OpenFlags.ReadWrite);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (8)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
92store.Open(OpenFlags.ReadOnly); 836store.Open(OpenFlags.ReadWrite);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
161store.Open(OpenFlags.ReadWrite); 190store.Open(OpenFlags.ReadWrite); 364store.Open(OpenFlags.ReadWrite);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
66store.Open(OpenFlags.ReadWrite); 77store.Open(OpenFlags.ReadWrite); 106store.Open(OpenFlags.ReadWrite);
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (1)
CertificateManagerTests.cs (1)
115store.Open(OpenFlags.ReadOnly);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
HttpsTests.cs (1)
292store.Open(OpenFlags.ReadOnly);
Microsoft.AspNetCore.Server.Kestrel.Core (10)
CertificateLoader.cs (1)
40store.Open(OpenFlags.ReadOnly);
Middleware\HttpsConnectionMiddleware.cs (1)
262store.Open(OpenFlags.ReadOnly);
src\Shared\CertificateGeneration\CertificateManager.cs (2)
92store.Open(OpenFlags.ReadOnly); 836store.Open(OpenFlags.ReadWrite);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
161store.Open(OpenFlags.ReadWrite); 190store.Open(OpenFlags.ReadWrite); 364store.Open(OpenFlags.ReadWrite);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
66store.Open(OpenFlags.ReadWrite); 77store.Open(OpenFlags.ReadWrite); 106store.Open(OpenFlags.ReadWrite);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\test\CertHelper.cs (2)
71store.Open(OpenFlags.ReadWrite); 88store.Open(OpenFlags.ReadWrite);
Microsoft.Build.Tasks.Core (3)
ManifestUtil\SecurityUtil.cs (2)
891personalStore.Open(OpenFlags.ReadOnly); 910personalStore.Open(OpenFlags.ReadOnly);
ResolveKeySource.cs (1)
181personalStore.Open(OpenFlags.ReadWrite);
Microsoft.Build.Tasks.UnitTests (1)
SecurityUtil_Tests.cs (1)
71s_personalStore.Open(OpenFlags.ReadWrite);
Microsoft.DotNet.SignCheckLibrary (3)
Verification\XmlVerifier.cs (3)
71rootStore.Open(OpenFlags.IncludeArchived | OpenFlags.OpenExistingOnly | OpenFlags.ReadOnly);
netstandard (1)
netstandard.cs (1)
1945[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.OpenFlags))]
PresentationUI (2)
MS\Internal\Documents\DocumentSignatureManager.cs (2)
921store.Open(OpenFlags.OpenExistingOnly | OpenFlags.ReadOnly);
System (1)
src\libraries\shims\System\ref\System.cs (1)
857[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.OpenFlags))]
System.Net.Http (1)
src\libraries\Common\src\System\Net\Security\CertificateHelper.Unix.cs (1)
16myStore.Open(OpenFlags.ReadOnly);
System.Net.Security (3)
System\Net\CertificateValidationPal.Unix.cs (1)
185store.Open(OpenFlags.ReadOnly);
System\Net\Security\SslCertificateTrust.cs (2)
33store.Open(OpenFlags.ReadOnly | OpenFlags.OpenExistingOnly);
System.Security.Cryptography (22)
System\Security\Cryptography\X509Certificates\ChainPal.OpenSsl.cs (2)
111using (new X509Store(StoreName.Disallowed, StoreLocation.CurrentUser, OpenFlags.ReadOnly)) 209userIntermediate.Open(OpenFlags.ReadWrite);
System\Security\Cryptography\X509Certificates\OpenSslDirectoryBasedStoreProvider.cs (8)
350 == OpenFlags.ReadOnly, 40internal OpenSslDirectoryBasedStoreProvider(string storeName, OpenFlags openFlags) 51if (0 != (openFlags & OpenFlags.OpenExistingOnly)) 61OpenFlags writeFlags = openFlags & (OpenFlags.ReadWrite | OpenFlags.MaxAllowed); 63if (writeFlags == OpenFlags.ReadOnly) 383internal static IStorePal OpenDisallowedStore(OpenFlags openFlags)
System\Security\Cryptography\X509Certificates\StorePal.cs (1)
31OpenFlags openFlags);
System\Security\Cryptography\X509Certificates\StorePal.OpenSsl.cs (3)
141internal static partial IStorePal FromSystemStore(string storeName, StoreLocation storeLocation, OpenFlags openFlags) 155if ((openFlags & OpenFlags.ReadWrite) == OpenFlags.ReadWrite)
System\Security\Cryptography\X509Certificates\UnsupportedDisallowedStore.cs (5)
16internal UnsupportedDisallowedStore(OpenFlags openFlags) 20OpenFlags writeFlags = openFlags & (OpenFlags.ReadWrite | OpenFlags.MaxAllowed); 22if (writeFlags == OpenFlags.ReadOnly)
System\Security\Cryptography\X509Certificates\X509Store.cs (3)
57public X509Store(StoreName storeName, StoreLocation storeLocation, OpenFlags flags) 72public X509Store(string storeName, System.Security.Cryptography.X509Certificates.StoreLocation storeLocation, System.Security.Cryptography.X509Certificates.OpenFlags flags) 105public void Open(OpenFlags flags)
System.Security.Cryptography.Pkcs (4)
Internal\Cryptography\PkcsHelpers.cs (4)
267OpenFlags flags = OpenFlags.ReadOnly | OpenFlags.IncludeArchived; 269flags |= OpenFlags.OpenExistingOnly;
System.Security.Cryptography.X509Certificates (1)
System.Security.Cryptography.X509Certificates.cs (1)
8[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.OpenFlags))]
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\Utils.cs (2)
675stores[index].Open(OpenFlags.ReadOnly | OpenFlags.OpenExistingOnly);
Templates.Blazor.Tests (8)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
92store.Open(OpenFlags.ReadOnly); 836store.Open(OpenFlags.ReadWrite);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
161store.Open(OpenFlags.ReadWrite); 190store.Open(OpenFlags.ReadWrite); 364store.Open(OpenFlags.ReadWrite);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
66store.Open(OpenFlags.ReadWrite); 77store.Open(OpenFlags.ReadWrite); 106store.Open(OpenFlags.ReadWrite);
Templates.Blazor.WebAssembly.Auth.Tests (8)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
92store.Open(OpenFlags.ReadOnly); 836store.Open(OpenFlags.ReadWrite);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
161store.Open(OpenFlags.ReadWrite); 190store.Open(OpenFlags.ReadWrite); 364store.Open(OpenFlags.ReadWrite);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
66store.Open(OpenFlags.ReadWrite); 77store.Open(OpenFlags.ReadWrite); 106store.Open(OpenFlags.ReadWrite);
Templates.Blazor.WebAssembly.Tests (8)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
92store.Open(OpenFlags.ReadOnly); 836store.Open(OpenFlags.ReadWrite);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
161store.Open(OpenFlags.ReadWrite); 190store.Open(OpenFlags.ReadWrite); 364store.Open(OpenFlags.ReadWrite);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
66store.Open(OpenFlags.ReadWrite); 77store.Open(OpenFlags.ReadWrite); 106store.Open(OpenFlags.ReadWrite);
Templates.Mvc.Tests (8)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
92store.Open(OpenFlags.ReadOnly); 836store.Open(OpenFlags.ReadWrite);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
161store.Open(OpenFlags.ReadWrite); 190store.Open(OpenFlags.ReadWrite); 364store.Open(OpenFlags.ReadWrite);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
66store.Open(OpenFlags.ReadWrite); 77store.Open(OpenFlags.ReadWrite); 106store.Open(OpenFlags.ReadWrite);
Templates.Tests (8)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
92store.Open(OpenFlags.ReadOnly); 836store.Open(OpenFlags.ReadWrite);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
161store.Open(OpenFlags.ReadWrite); 190store.Open(OpenFlags.ReadWrite); 364store.Open(OpenFlags.ReadWrite);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
66store.Open(OpenFlags.ReadWrite); 77store.Open(OpenFlags.ReadWrite); 106store.Open(OpenFlags.ReadWrite);
WebTransportInteractiveSampleApp (1)
Program.cs (1)
166store.Open(OpenFlags.ReadWrite);
WebTransportSampleApp (1)
Program.cs (1)
51store.Open(OpenFlags.ReadWrite);