Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Toub <stoub@microsoft.com>2018-03-15 19:41:48 +0300
committerStephen Toub <stoub@microsoft.com>2018-03-16 17:27:01 +0300
commit98227f1a18c1859c5614a0f045a09660f34e6cc1 (patch)
tree1ec0323172eac22ea6f779ad6ccf38d2bea5c577 /src/System.Security.Cryptography.Encoding
parent02e5a345deff55c0e6ff064d049c89b2eb6d481e (diff)
Avoid StringBuffer allocation in Interop.Kernel32.GetMessage
And use it from X509Chain.ChainStatus rather than its own FormatMessage DllImport. Normally we don't care as much about exceptional paths that FormatMessage would be used on, but it shows up on success paths with X509 where certificate validation failures are known and ignored by a custom validation routine.
Diffstat (limited to 'src/System.Security.Cryptography.Encoding')
-rw-r--r--src/System.Security.Cryptography.Encoding/src/System.Security.Cryptography.Encoding.csproj1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/System.Security.Cryptography.Encoding/src/System.Security.Cryptography.Encoding.csproj b/src/System.Security.Cryptography.Encoding/src/System.Security.Cryptography.Encoding.csproj
index 5ebbedf3e9..9681ef62e4 100644
--- a/src/System.Security.Cryptography.Encoding/src/System.Security.Cryptography.Encoding.csproj
+++ b/src/System.Security.Cryptography.Encoding/src/System.Security.Cryptography.Encoding.csproj
@@ -100,6 +100,7 @@
<Reference Include="System.Collections.Concurrent" />
<Reference Include="System.Diagnostics.Debug" />
<Reference Include="System.Linq" />
+ <Reference Include="System.Memory" />
<Reference Include="System.Resources.ResourceManager" />
<Reference Include="System.Runtime" />
<Reference Include="System.Runtime.Extensions" />