Introduce new MONO_X509_ALIAS conditional and use it in SslStream.cs.
authorMartin Baulig <martin.baulig@xamarin.com>
Sat, 7 Feb 2015 18:39:43 +0000 (19:39 +0100)
committerMarek Safar <marek.safar@gmail.com>
Mon, 2 May 2016 22:07:48 +0000 (00:07 +0200)
mcs/class/referencesource/README.Mono
mcs/class/referencesource/System/net/System/Net/SecureProtocols/SslStream.cs

index 186eea27bf8c07af3536a83c3a07097ee9050914..1950bf3f520e677529fc2cdffa9a12848587be36 100644 (file)
@@ -16,5 +16,9 @@ Other defines which are used when building the BCL and tests:
 
 * MONO_INSIDE_MONO_SECURITY: we're building Mono.Security.dll.
 
+Extern aliases:
+
 * MONO_SECURITY_ALIAS: we're using Mono.Security from the "MonoSecurity" extern alias.
 
+* MONO_X509_ALIAS: we're using X509CertificateCollection from the "PrebuiltSystem" extern alias.
+
index 6f8f5cfaed52a91131e74b635c5b7354d1bc8c0c..862b5e85f115548ee02bfcfca4f5ce2bc07526d8 100644 (file)
@@ -16,6 +16,11 @@ Revision History:
 
 --*/
 #if MONO_FEATURE_NEW_TLS && SECURITY_DEP
+#if MONO_X509_ALIAS
+extern alias PrebuiltSystem;
+using X509CertificateCollection = PrebuiltSystem::System.Security.Cryptography.X509Certificates.X509CertificateCollection;
+#endif
+
 namespace System.Net.Security {
 using System;
 using System.IO;