Commit Graph
8 Commits
Author SHA1 Message Date
Marek Habersack 34fb07d05f Include support for SSL/TLS right in System when building for the MONODROID profile
This patch builds upon commit 96a8500795 which placed parts of Mono.Security
responsible for dealing with SSL/TLS certificates for the purpose of certificate verification. The code enables
validation of the certifcates even if the user does not provide their own validation callback. The changes as related to
the original commit are few, basically consisting of enabling the same code used by MonoTouch in the MonoDroid context with
the only actual code change being the certificate validation bit mentioned above.

Since the change involves adding a subset of Mono.Security files to the monodroid version of System.dll, it is
also necessary to remove Mono.Android's dependence on Mono.Security.dll. The reason is that the code in AndroidPlatform
which looks up TLS support methods in Mono.Android.dll would use a type (X509CertificateCollection) that is now part of
System.dll but is *also* in Mono.Security.dll referenced by Mono.Android.dll and therefore the lookup would fail since
we'd have two distinct types from the reflection point of view.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=18962
2014-04-25 21:39:53 +02:00
Sebastien Pouliot 96a8500795 Allow the MONOTOUCH targetr to build its SSL/TLS support right inside System.dll and remove code duplication and non-required code paths. 2013-07-01 16:21:04 -04:00
Rodrigo Kumpera 5007c14d62 Kill the MOONLIGHT define in System. 2013-02-11 13:01:11 -05:00
Miguel de Icaza f48ceb9860 [System] Removal of the NET_2_0 in the source code
Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
2012-06-02 13:16:40 -04:00
Sebastien Pouliot 9c8cb87fe3 In .:
2010-07-21  Sebastien Pouliot  <[email protected]>

	* Makefile: Ensure SECURITY_DEP gets defined in our moonlight
	raw profile

In System.Net:
2010-07-21  Sebastien Pouliot  <[email protected]>

	* ServicePointManager.cs: Add special validation for Moonlight
	* WebConnection.cs: Change a define to NET_2_1

In System.Net.Security:
2010-07-21  Sebastien Pouliot  <[email protected]>

	* LocalCertificateSelectionCallback.cs:
	* SslStream.cs:
		Don't use alias in moonlight build (not needed and breaks
		compilation otherwise)


svn path=/trunk/mcs/; revision=160675
2010-07-21 13:36:35 +00:00
Atsushi Eno 4134bf5d73 2007-08-24 Atsushi Enomoto <[email protected]>
System.Net.Security:
	* SslStream.cs : implemented, based on Mono.Security.
	* LocalCertificateSelectionCallback.cs : extern alias is needed.

    System(topdir):
	* Makefile : split PREBUILT_DEP from CONFIGURATION_DEP so that the
	  prebuilt System.dll could be referenced for security stuff too.

    Test/tools/mutual:
	* Makefile, ca.pem, client.p12, client.pem, mutual.cs, server.sh,
	  server_cert.pem, server_key.pem, serveropt.sh:
	  ported from Mono.Security
	* README : forwarding.

    Test/tools/server:
	* Makefile, msslserver.cs, mutual.pem : ported from Mono.Security.
	* README : forwarding.



svn path=/trunk/mcs/; revision=84783
2007-08-24 09:42:40 +00:00
Atsushi Eno cf41c798eb 2006-04-05 Atsushi Enomoto <[email protected]>
* System.dll.sources : added SslPolicyErrors.cs.

	* AuthenticationLevel.cs,
	  NegotiateStream.cs,
	  SslStream.cs,
	  LocalCertificateSelectionCallback.cs,
	  RemoteCertificateValidationCallback.cs :
	  Updated all unimplemented things to 2.0 RTM.


svn path=/trunk/mcs/; revision=59054
2006-04-05 08:20:48 +00:00
Miguel de Icaza beba57fc36 corcompare fixes
svn path=/trunk/mcs/; revision=57759
2006-03-10 00:40:46 +00:00