+2010-07-21 Sebastien Pouliot <sebastien@ximian.com>
+
+ * Makefile: Ensure SECURITY_DEP gets defined in our moonlight
+ raw profile
+
2010-05-10 Sebastien Pouliot <sebastien@ximian.com>
* moonlight_bootstrap_System.dll.sources: Minimal build for
endif
ifeq (2.1, $(FRAMEWORK_VERSION))
LIB_MCS_FLAGS += -d:INSIDE_SYSTEM
+ifeq (moonlight_raw, $(PROFILE))
+LIB_MCS_FLAGS += -d:SECURITY_DEP
+endif
endif
EXTRA_DISTFILES = \
+2010-07-21 Sebastien Pouliot <sebastien@ximian.com>
+
+ * LocalCertificateSelectionCallback.cs:
+ * SslStream.cs:
+ Don't use alias in moonlight build (not needed and breaks
+ compilation otherwise)
+
2010-06-29 Sebastien Pouliot <sebastien@ximian.com>
* RemoteCertificateValidationCallback.cs: Remove SECURITY_DEP use
//
#if NET_2_0 && SECURITY_DEP
-extern alias PrebuiltSystem;
-using System.Security.Cryptography.X509Certificates;
+#if !MOONLIGHT
+extern alias PrebuiltSystem;
using X509CertificateCollection = PrebuiltSystem::System.Security.Cryptography.X509Certificates.X509CertificateCollection;
+#endif
+
+using System.Security.Cryptography.X509Certificates;
namespace System.Net.Security
{
//
#if NET_2_0 && SECURITY_DEP
+
+#if !MOONLIGHT
extern alias PrebuiltSystem;
+using X509CertificateCollection = PrebuiltSystem::System.Security.Cryptography.X509Certificates.X509CertificateCollection;
+#endif
using System;
using System.IO;
using MonoExchangeAlgorithmType = Mono.Security.Protocol.Tls.ExchangeAlgorithmType;
using MonoSecurityProtocolType = Mono.Security.Protocol.Tls.SecurityProtocolType;
-using X509CertificateCollection = PrebuiltSystem::System.Security.Cryptography.X509Certificates.X509CertificateCollection;
-
namespace System.Net.Security
{
[MonoTODO ("Non-X509Certificate2 certificate is not supported")]
+2010-07-21 Sebastien Pouliot <sebastien@ximian.com>
+
+ * ServicePointManager.cs: Add special validation for Moonlight
+ * WebConnection.cs: Change a define to NET_2_1
+
2010-07-16 Gonzalo Paniagua Javier <gonzalo@novell.com>
* WebClient.cs: ignore values set in CachePolicy and
servicePoints.Remove (list.GetByIndex (i));
}
}
-#if NET_2_0 && SECURITY_DEP
+#if MOONLIGHT && SECURITY_DEP
+ internal class ChainValidationHelper {
+ object sender;
+
+ public ChainValidationHelper (object sender)
+ {
+ this.sender = sender;
+ }
+
+ // no need to check certificates since we are either
+ // (a) loading from the site of origin (and we accepted its certificate to load from it)
+ // (b) loading from a cross-domain site and we downloaded the policy file using the browser stack
+ // i.e. the certificate was accepted (or the policy would not be valid)
+ internal ValidationResult ValidateChain (Mono.Security.X509.X509CertificateCollection certs)
+ {
+ return new ValidationResult (true, false, 0);
+ }
+ }
+#elif NET_2_0 && SECURITY_DEP
internal class ChainValidationHelper {
object sender;
string host;
if (sslStream != null)
return;
-#if MONOTOUCH && SECURITY_DEP
+#if NET_2_1 && SECURITY_DEP
sslStream = typeof (Mono.Security.Protocol.Tls.HttpsClientStream);
#else
// HttpsClientStream is an internal glue class in Mono.Security.dll